X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=parse-options-cb.c;h=4542d4d3f929f51ce242e6463362307df3ec8d2d;hb=1b5b8cf072491e0a43e668c685b782efce9a6f0f;hp=d9d3b0819f711ea0db1cfa115832f3b2f616c142;hpb=b58e47a929ec3d3d5fe63f18ae9539ffe9051c51;p=thirdparty%2Fgit.git diff --git a/parse-options-cb.c b/parse-options-cb.c index d9d3b0819f..4542d4d3f9 100644 --- a/parse-options-cb.c +++ b/parse-options-cb.c @@ -105,6 +105,8 @@ int parse_opt_commit(const struct option *opt, const char *arg, int unset) struct commit *commit; struct commit **target = opt->value; + BUG_ON_OPT_NEG(unset); + if (!arg) return -1; if (get_oid(arg, &oid))