git show on bare repository?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I could have sworn I used to be able to use git show to display the
contents of a file from the server, but now it always says this (if I
use -- then it doesn't show anything):

fatal: ambiguous argument 'master:file.txt': unknown revision or path
not in the working tree.
Use '--' to separate paths from revisions

What I'm trying to do is allow people to get a single file without
having to clone the entirely repository, like this:

ssh git.example.com "cd /MyRepo.git && git show master:File.txt"

If I do this with a non-bare repository, it works. The server is
running git version 1.6.3.2 (I'm running 1.6.4 locally where it
works).
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]