Thread (6 messages) flat view 6 messages, 4 authors, 2016-06-15

Re: [PATCH] pack-refs: dereference .git/packed-refs if it is a symlink

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:43:05

Possibly related (same subject, not in this thread)


On Wed, 18 Apr 2007, Peter Baumann wrote:
git-new-workdir creates a new working directory where everything
necessary, including .git/packed-refs, is symlinked to your master repo.
But git-pack-refs breaks the symlink, so you could accidentally loose some
refs. This fixes it to first dereference .git/packed-refs if it is a
symlink.
Wouldn't it be nicer to instead make "git gc" *notice* the fact that we're 
in a workdir, and just "cd" to the main git repository instead?

		Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help