]> git.ipfire.org Git - thirdparty/git.git/blobdiff - parse-options-cb.c
Merge branch 'en/merge-ort-api-null-impl'
[thirdparty/git.git] / parse-options-cb.c
index d9d3b0819f711ea0db1cfa115832f3b2f616c142..4542d4d3f929f51ce242e6463362307df3ec8d2d 100644 (file)
@@ -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))