get_short_sha1(): correctly disambiguate type-limited abbreviation
[gitweb.git] / builtin / pack-objects.c
index 0f2e7b8f5cb26910679c39550d59ef23353a278f..48ccaddadf1a9cd9906867ccde62480c753355f1 100644 (file)
@@ -2290,7 +2290,7 @@ static void get_object_list(int ac, const char **av)
                        }
                        die("not a rev '%s'", line);
                }
-               if (handle_revision_arg(line, &revs, flags, 1))
+               if (handle_revision_arg(line, &revs, flags, REVARG_CANNOT_BE_FILENAME))
                        die("bad revision '%s'", line);
        }