All of lore.kernel.org
 help / color / mirror / Atom feed
* cloning a tree which has detached branch checked out
@ 2012-02-07  7:06 Michael S. Tsirkin
  2012-02-07 10:08 ` Jakub Narebski
  0 siblings, 1 reply; 10+ messages in thread
From: Michael S. Tsirkin @ 2012-02-07  7:06 UTC (permalink / raw)
  To: git

I have a tree where I checked out a remote, without
creating a local branch, this detaches the HEAD:
# git branch
* (no branch)
  master
#git log|head -1
commit cec64082f689f949a397cb9b39423dc41545fa0e
#git log master..HEAD|head -1
commit cec64082f689f949a397cb9b39423dc41545fa0e


Now if I try to clone it:
#git clone -n lab:/home/mst/scm/linux
Initialized empty Git repository in /home/mst/scm/linux/.git/
remote: Counting objects: 1693446, done.
remote: Compressing objects: 100% (277054/277054), done.
Receiving objects: 100% (1693446/1693446), 418.16 MiB | 7.63 MiB/s,
done.
remote: Total 1693446 (delta 1414353), reused 1681280 (delta 1402358)
Resolving deltas: 100% (1414353/1414353), done.
error: Trying to write ref HEAD with nonexistant object
cec64082f689f949a397cb9b39423dc41545fa0e
fatal: Cannot update the ref 'HEAD'.

Looks like a bug, doesn't it?

-- 
MST

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

end of thread, other threads:[~2012-02-08 10:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-07  7:06 cloning a tree which has detached branch checked out Michael S. Tsirkin
2012-02-07 10:08 ` Jakub Narebski
2012-02-07 10:41   ` Michael S. Tsirkin
2012-02-07 12:57     ` Nguyen Thai Ngoc Duy
2012-02-07 13:02       ` Michael S. Tsirkin
2012-02-07 13:07         ` Nguyen Thai Ngoc Duy
2012-02-07 15:32       ` Jeff King
2012-02-07 17:11         ` Junio C Hamano
2012-02-07 17:16           ` Jeff King
2012-02-08 10:17             ` Michael S. Tsirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.