Re: Question: git clone --no-checkout behavior

2012-07-12 Thread Junio C Hamano
Bryan Turner writes: >> If you populated $GIT_DIR/index from the tree of HEAD, you would see >> everything is deleted in the working tree. You can simulate it by >> doing this: >> >> git clone -n $over_there here >> cd here >> git read-tree HEAD >> git status >> >

Re: Question: git clone --no-checkout behavior

2012-07-12 Thread Junio C Hamano
Bryan Turner writes: > 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 do not recall we *designed* it in such

Question: git clone --no-checkout behavior

2012-07-12 Thread Bryan Turner
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