Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
assert NOARG/NONEG behavior of parse-options callbacks
[gitweb.git]
/
builtin
/
fetch.c
diff --git
a/builtin/fetch.c
b/builtin/fetch.c
index 8f7249f2b138279dabfe994248f58069e8d52a7b..354ed8bdef3a6511ddb580d97b75df60b77ac6ca 100644
(file)
--- a/
builtin/fetch.c
+++ b/
builtin/fetch.c
@@
-98,6
+98,8
@@
static int git_fetch_config(const char *k, const char *v, void *cb)
static int parse_refmap_arg(const struct option *opt, const char *arg, int unset)
{
+ BUG_ON_OPT_NEG(unset);
+
/*
* "git fetch --refmap='' origin foo"
* can be used to tell the command not to store anywhere