Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pull --rebase: exit early when the working directory is dirty
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index ccc6dac54b570d7174175242ba2d535d4006ab1c..7e38148fe52959e1cb8435132c65491dba6850b0 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-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))