Add several uses of get_object_hash.
[gitweb.git] / refs.c
diff --git a/refs.c b/refs.c
index bab92d773d1e06a29805564e48b96d500a6f9b9b..0467a760358b98e141313e9090cada77df9f88e9 100644 (file)
--- 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, o->sha1);
+       hashcpy(sha1, get_object_hash(*o));
        return PEEL_PEELED;
 }