t3404: use configured shell instead of /bin/sh
[gitweb.git] / builtin-describe.c
index 18eab47f6aea0f1388d457c722ea51b63699627f..3428483134156f4e1761aa47ed2e8098a294808c 100644 (file)
@@ -271,10 +271,11 @@ int cmd_describe(int argc, const char **argv, const char *prefix)
        save_commit_buffer = 0;
 
        if (contains) {
-               const char **args = xmalloc((5 + argc) * sizeof(char*));
+               const char **args = xmalloc((6 + argc) * sizeof(char*));
                int i = 0;
                args[i++] = "name-rev";
                args[i++] = "--name-only";
+               args[i++] = "--no-undefined";
                if (!all) {
                        args[i++] = "--tags";
                        if (pattern) {