Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
checkout: add advice for ambiguous "checkout <branch>"
[gitweb.git]
/
builtin
/
branch.c
diff --git
a/builtin/branch.c
b/builtin/branch.c
index cc089f9efb29c4a1eb2d2f4abb024b99f7809553..d53f6e2ad4c30ef02262ff3fa01ecdb54be96f11 100644
(file)
--- a/
builtin/branch.c
+++ b/
builtin/branch.c
@@
-500,7
+500,7
@@
static void copy_or_rename_branch(const char *oldname, const char *newname, int
if (!skip_prefix(oldref.buf, "refs/heads/", &interpreted_oldname) ||
!skip_prefix(newref.buf, "refs/heads/", &interpreted_newname)) {
-
die("BUG:
expected prefix missing for refs");
+
BUG("
expected prefix missing for refs");
}
if (copy)