Git development
 help / color / mirror / Atom feed
* repack behaves unexpectedly if called in a bare _subrepo_
@ 2007-06-17 15:38 Alex Riesen
  2007-06-17 17:22 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Riesen @ 2007-06-17 15:38 UTC (permalink / raw)
  To: git

Just a heads-up. This took me by surprise. And I suppose it will be
the same even if the subrepo is a real subproject.

To illustrate:

(
    mkdir super && cd super
    git init
    echo 0 > a; git add a; git commit -m0
    echo 2 >> a; git commit -a -m1
    echo 3 >> a; git commit -a -m2
    cp -a .git sub
    cd sub
    git --bare config --bool core.bare true
    git repack -a -d
)

Unexpectedly, the "super" repo is repacked, even though repack is
called from the "sub". To actually repack the repo in the current
directory if it is bare, use "git --bare repack ...".

This kind of makes core.bare pointless: can't rely on it anyway.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-06-17 19:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-17 15:38 repack behaves unexpectedly if called in a bare _subrepo_ Alex Riesen
2007-06-17 17:22 ` Junio C Hamano
2007-06-17 19:27   ` Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox