summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index 0467a76035..65d887410f 100644
--- a/refs.c
+++ b/refs.c
@@ -1880,7 +1880,7 @@ static enum peel_status peel_object(const unsigned char *name, unsigned char *sh
if (!o)
return PEEL_INVALID;
- hashcpy(sha1, get_object_hash(*o));
+ hashcpy(sha1, o->oid.hash);
return PEEL_PEELED;
}