Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] Expose object ID computation functions.
[gitweb.git]
/
update-cache.c
diff --git
a/update-cache.c
b/update-cache.c
index 7c2698df6e7b08315e7d20bd40c1e7e313f52bf3..d5225c37644086f9b3c0b911c6e283fb5ec50c8e 100644
(file)
--- a/
update-cache.c
+++ b/
update-cache.c
@@
-68,7
+68,7
@@
static int add_file_to_cache(char *path)
fd = open(path, O_RDONLY);
if (fd < 0)
return -1;
- if (index_fd(ce->sha1, fd, &st) < 0)
+ if (index_fd(ce->sha1, fd, &st
, 1, NULL
) < 0)
return -1;
break;
case S_IFLNK: