Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Remove common-cmds.h
[gitweb.git]
/
builtin
/
hash-object.c
diff --git
a/builtin/hash-object.c
b/builtin/hash-object.c
index 8a58ce085a80d2c9aa38763d97112589f50fa237..526da5c1856ed1c387975a767f4d01382d1ea1a9 100644
(file)
--- a/
builtin/hash-object.c
+++ b/
builtin/hash-object.c
@@
-24,7
+24,8
@@
static int hash_literally(struct object_id *oid, int fd, const char *type, unsig
if (strbuf_read(&buf, fd, 4096) < 0)
ret = -1;
else
- ret = hash_sha1_file_literally(buf.buf, buf.len, type, oid->hash, flags);
+ ret = hash_object_file_literally(buf.buf, buf.len, type, oid,
+ flags);
strbuf_release(&buf);
return ret;
}