git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question: git clone --no-checkout behavior
@ 2012-07-12 12:51 Bryan Turner
  2012-07-12 17:40 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Bryan Turner @ 2012-07-12 12:51 UTC (permalink / raw)
  To: git

I've witnessed the following behavior in both git 1.7.6 and 1.7.10.4.

Assume I have a bare clone, some-repo.git. If I run:
- git clone --shared --no-checkout /path/to/some-repo.git shared-repo
- cd shared-repo
- git status

I see that every file in the repository is _staged_ for deletion. I'm
not surprised every file shows deleted; I'm surprised that the
deletion starts out already staged. A git reset unstages all of the
deletions and I'm good to go. I'm just wondering why they're all
staged in the first place; it seems counter-intuitive.

Can anyone shed some light on this?
Bryan Turner

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

end of thread, other threads:[~2012-07-12 22:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-12 12:51 Question: git clone --no-checkout behavior Bryan Turner
2012-07-12 17:40 ` Junio C Hamano
     [not found]   ` <CAGyf7-Fkn9bjJ9EZEFNsba8U-RUzrB3TzmB-YbcvwUFRbHXG+Q@mail.gmail.com>
2012-07-12 22:02     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).