diff options
author | Junio C Hamano <junkio@cox.net> | 2007-02-28 11:52:04 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-28 12:00:00 -0800 |
commit | 53bca91a7d337ea648197b9642b41a92704c17f7 (patch) | |
tree | 28c8d3d7d20fbfb87ed85ca0d0b3804f6e8c43d9 /hash-object.c | |
parent | edaec3fbe8821a5761e35e9b01937eea9b2544c1 (diff) | |
download | git-53bca91a7d337ea648197b9642b41a92704c17f7.tar.gz git-53bca91a7d337ea648197b9642b41a92704c17f7.tar.xz |
index_fd(): pass optional path parameter as hint for blob conversion
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'hash-object.c')
-rw-r--r-- | hash-object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hash-object.c b/hash-object.c index 1e6f6bf70..18f5017f5 100644 --- a/hash-object.c +++ b/hash-object.c @@ -15,7 +15,7 @@ static void hash_object(const char *path, enum object_type type, int write_objec fd = open(path, O_RDONLY); if (fd < 0 || fstat(fd, &st) < 0 || - index_fd(sha1, fd, &st, write_object, type)) + index_fd(sha1, fd, &st, write_object, type, path)) die(write_object ? "Unable to add %s to database" : "Unable to hash %s", path); |