author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Mon, 16 Jan 2012 09:46:08 +0000 (16:46 +0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 17 Jan 2012 00:26:24 +0000 (16:26 -0800) | ||
commit | 7f08c6858ecfdf29f9713cf3a0b3699192f01a94 | |
tree | bf7099993b8f41f52ad0c81f9468e6f192a0ca6c | tree | snapshot |
parent | bafe763197cb6535e5b4956ffeaa4e26ebb10651 | commit | diff |
clone: write detached HEAD in bare repositories
If we don't write, HEAD is still at refs/heads/master as initialized
by init-db, which may or may not match remote's HEAD.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If we don't write, HEAD is still at refs/heads/master as initialized
by init-db, which may or may not match remote's HEAD.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c | diff | blob | history | |
t/t5601-clone.sh | diff | blob | history |