filter-branch: introduce convenience function "skip_commit"
[gitweb.git] / revision.c
index 51fff0ec5048478392c140a9f2b68c3650220b10..c193c3ea229be39472cc1f569632b0adc1a7e5d9 100644 (file)
@@ -896,7 +896,8 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
                        continue;
                argv[i] = NULL;
                argc = i;
-               revs->prune_data = get_pathspec(revs->prefix, argv + i + 1);
+               if (argv[i + 1])
+                       revs->prune_data = get_pathspec(revs->prefix, argv + i + 1);
                seen_dashdash = 1;
                break;
        }