diff options
author | Tay Ray Chuan <rctay89@gmail.com> | 2010-08-09 18:52:26 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-08-09 21:57:17 +0200 |
commit | cc70148385d5a36682d3b67fdaa726590577f257 (patch) | |
tree | 68f573fe1939b6b06031624c12dfdbf2553d72cd /wt-status.c | |
parent | builtin/checkout: learn -B (diff) | |
download | git-cc70148385d5a36682d3b67fdaa726590577f257.tar.xz git-cc70148385d5a36682d3b67fdaa726590577f257.zip |
builtin/checkout: handle -B from detached HEAD correctly
Ensure that strcmp() isn't called when head is null.
Previously we were getting segfaults when checkout -B was done from a
detached HEAD.
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.c')
0 files changed, 0 insertions, 0 deletions