Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
builtin/cat-file: convert struct expand_data to use struct object_id
[gitweb.git]
/
sha1_name.c
diff --git
a/sha1_name.c
b/sha1_name.c
index ca7ddd6f2cf7074a1d74e011c2bd260c2ae6ffe6..e44043911fc5c9c2ce58b7746d9de33098705b74 100644
(file)
--- a/
sha1_name.c
+++ b/
sha1_name.c
@@
-1435,7
+1435,7
@@
static int get_sha1_with_context_1(const char *name,
memcmp(ce->name, cp, namelen))
break;
if (ce_stage(ce) == stage) {
- hashcpy(sha1, ce->
sha1
);
+ hashcpy(sha1, ce->
oid.hash
);
oc->mode = ce->ce_mode;
free(new_path);
return 0;