diff options
Diffstat (limited to 'src/blob.c')
-rw-r--r-- | src/blob.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/blob.c b/src/blob.c index b00fc25af..12f468ef7 100644 --- a/src/blob.c +++ b/src/blob.c @@ -78,7 +78,7 @@ int git_blob_create_frombuffer(git_oid *oid, git_repository *repo, const void *b return GIT_SUCCESS; } -int git_blob_create_fromfile(git_oid *oid, git_repository *repo, const char *path, struct stat st) +int git_blob_create_fromfile(git_oid *oid, git_repository *repo, const char *path) { int error, islnk; int fd = 0; @@ -86,6 +86,9 @@ int git_blob_create_fromfile(git_oid *oid, git_repository *repo, const char *pat char buffer[2048]; git_off_t size; git_odb_stream *stream; + struct stat st; + + gitfo_lstat(path, &st); islnk = S_ISLNK(st.st_mode); |