Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
midx: double-check large object write loop
[gitweb.git]
/
builtin
/
commit.c
diff --git
a/builtin/commit.c
b/builtin/commit.c
index 4d7754ca43515575730b10c6c40bbc6234424e06..500f793fa6947f6309ce4ea82d15410e35b2ff20 100644
(file)
--- a/
builtin/commit.c
+++ b/
builtin/commit.c
@@
-161,6
+161,9
@@
static int opt_parse_m(const struct option *opt, const char *arg, int unset)
static int opt_parse_rename_score(const struct option *opt, const char *arg, int unset)
{
const char **value = opt->value;
+
+ BUG_ON_OPT_NEG(unset);
+
if (arg != NULL && *arg == '=')
arg = arg + 1;