Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ss/completion-rec-sub-fetch-push'
[gitweb.git]
/
builtin
/
notes.c
diff --git
a/builtin/notes.c
b/builtin/notes.c
index d459e23c4225ae0f8084cfd756563c2b7ab85a60..2b24d059b509d28d587066440ed131ce2f85464f 100644
(file)
--- a/
builtin/notes.c
+++ b/
builtin/notes.c
@@
-347,7
+347,7
@@
static struct notes_tree *init_notes_check(const char *subcommand)
init_notes(NULL, NULL, NULL, 0);
t = &default_notes_tree;
- if (
prefixcmp
(t->ref, "refs/notes/"))
+ if (
!starts_with
(t->ref, "refs/notes/"))
die("Refusing to %s notes in %s (outside of refs/notes/)",
subcommand, t->ref);
return t;