Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[fr] update french translation 2210/2210
[gitweb.git]
/
builtin
/
symbolic-ref.c
diff --git
a/builtin/symbolic-ref.c
b/builtin/symbolic-ref.c
index 71286b4fae4792dce73ab1533204e803e2a61334..b6a711d3191a729e5f07aae20e3fc5343148c9b2 100644
(file)
--- a/
builtin/symbolic-ref.c
+++ b/
builtin/symbolic-ref.c
@@
-65,7
+65,7
@@
int cmd_symbolic_ref(int argc, const char **argv, const char *prefix)
break;
case 2:
if (!strcmp(argv[0], "HEAD") &&
-
prefixcmp
(argv[1], "refs/"))
+
!starts_with
(argv[1], "refs/"))
die("Refusing to point HEAD outside of refs/");
create_symref(argv[0], argv[1], msg);
break;