Set $HOME for selftests
[gitweb.git] / describe.c
index 5ed052d3a1ad68fe1f4bbc209da8e45ac5d28469..ab192f83ae27c5e0bf3f2a5f61684d0dc66deb32 100644 (file)
@@ -163,7 +163,7 @@ int main(int argc, char **argv)
 
        setup_git_directory();
 
-       if (i == argc)
+       if (argc <= i)
                describe("HEAD", 1);
        else
                while (i < argc) {