From: Junio C Hamano <gitster@pobox.com>
To: Alex Riesen <raa.lkml@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: repack behaves unexpectedly if called in a bare _subrepo_
Date: Sun, 17 Jun 2007 10:22:39 -0700 [thread overview]
Message-ID: <7vir9mzeao.fsf@assigned-by-dhcp.pobox.com> (raw)
In-Reply-To: <20070617153810.GB2763@steel.home> (Alex Riesen's message of "Sun, 17 Jun 2007 17:38:10 +0200")
Alex Riesen <raa.lkml@gmail.com> writes:
> 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
> )
I think what is happening is that in that bare repository 'sub',
the sequence we find where a git repository is is defined so
that the current directory is checked way after "one of my
parents with .git/ subdirectory" check.
If super (a directory) has a subproject sub as its subproject,
then you would be copying .git to sub/.git, not sub/, wouldn't
you? What are you trying to achieve?
next prev parent reply other threads:[~2007-06-17 17:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-17 15:38 repack behaves unexpectedly if called in a bare _subrepo_ Alex Riesen
2007-06-17 17:22 ` Junio C Hamano [this message]
2007-06-17 19:27 ` Alex Riesen
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=7vir9mzeao.fsf@assigned-by-dhcp.pobox.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=raa.lkml@gmail.com \
/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