add -i: Fix running from a subdirectory
[gitweb.git] / builtin-commit.c
index 5d27102a624446030b5b048fa582544def395f21..45e51b1d5f8446b5c6bc6e69f1bf1b95eb870826 100644 (file)
@@ -165,7 +165,7 @@ static char *prepare_index(int argc, const char **argv, const char *prefix)
        const char **pathspec = NULL;
 
        if (interactive) {
-               interactive_add(argc, argv);
+               interactive_add(argc, argv, prefix);
                commit_style = COMMIT_AS_IS;
                return get_index_file();
        }