From: "J. Bruce Fields" <bfields@fieldses.org>
To: Theodore Ts'o <tytso@mit.edu>
Cc: git@vger.kernel.org
Subject: Re: What commands can and can not be used with bare repositories?
Date: Sat, 30 Dec 2006 20:57:28 -0500 [thread overview]
Message-ID: <20061231015728.GB20348@fieldses.org> (raw)
In-Reply-To: <E1H0poE-0000qd-Ee@candygram.thunk.org>
On Sat, Dec 30, 2006 at 08:48:22PM -0500, Theodore Ts'o wrote:
> What isn't documented is what commands actually can deal with a bare
> repository. At the moment, it looks like a bare repository can be a
> target of a git pull, push, and merge commands, and it can be a source
> for a git clone, but that seems to be about it. All other commands,
> such as "git log" blow up with the error message "Not a git repository".
> This to me seems a bit lame, since why isn't a "bare repository" also a
> "git repository"? All of the information is there for "git log" to
> work. Commands that require a working directory obviously can't work,
> but there are plenty of git commands for which there's no reason why
> they shouldn't be able to operate on a bare repository. For example,
> "git repack", "git log", "git fetch", etc.
Yup. Anything that should work actually does; you just need to know to
use one of:
GIT_DIR=. git log
git --git-dir=. log
git --bare log
Why git couldn't figure this out for you, I don't know....
--b.
next prev parent reply other threads:[~2006-12-31 1:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-31 1:48 What commands can and can not be used with bare repositories? Theodore Ts'o
2006-12-31 1:57 ` J. Bruce Fields [this message]
2006-12-31 1:57 ` Shawn Pearce
2006-12-31 2:12 ` Theodore Tso
2006-12-31 5:32 ` Michael S. Tsirkin
2006-12-31 5:52 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061231015728.GB20348@fieldses.org \
--to=bfields@fieldses.org \
--cc=git@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox