diff options
Diffstat (limited to 'update-cache.c')
-rw-r--r-- | update-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/update-cache.c b/update-cache.c index 7c2698df6e..d5225c3764 100644 --- 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: |