convert refresh_index to take struct pathspec
[gitweb.git] / builtin / commit.c
index eaecf7c494d4b8bb2ccc656e9003c2a34f28932f..d34baaba0e735bb89be60407d8dce0f67f8115d2 100644 (file)
@@ -1244,7 +1244,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
                       prefix, argv);
 
        read_cache_preload(&s.pathspec);
-       refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, s.pathspec.raw, NULL, NULL);
+       refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, &s.pathspec, NULL, NULL);
 
        fd = hold_locked_index(&index_lock, 0);
        if (0 <= fd)