Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-fetch.txt: document fetch output
[gitweb.git]
/
builtin
/
checkout.c
diff --git
a/builtin/checkout.c
b/builtin/checkout.c
index ea2fe1cf3fc251dcab2f2d70e737a0f8f5000a21..3398c61e9a64ab686bf59fb027277f3de578b5fb 100644
(file)
--- a/
builtin/checkout.c
+++ b/
builtin/checkout.c
@@
-1110,7
+1110,7
@@
static int checkout_branch(struct checkout_opts *opts,
char *head_ref = resolve_refdup("HEAD", 0, sha1, &flag);
if (head_ref &&
(!(flag & REF_ISSYMREF) || strcmp(head_ref, new->path)))
- die_if_checked_out(new->path);
+ die_if_checked_out(new->path
, 1
);
free(head_ref);
}