pull --rebase: exit early when the working directory is dirty
[gitweb.git] / sha1_file.c
index ccc6dac54b570d7174175242ba2d535d4006ab1c..7e38148fe52959e1cb8435132c65491dba6850b0 100644 (file)
@@ -3286,7 +3286,7 @@ static int index_core(unsigned char *sha1, int fd, size_t size,
        int ret;
 
        if (!size) {
-               ret = index_mem(sha1, NULL, size, type, path, flags);
+               ret = index_mem(sha1, "", size, type, path, flags);
        } else if (size <= SMALL_FILE_SIZE) {
                char *buf = xmalloc(size);
                if (size == read_in_full(fd, buf, size))