aboutsummaryrefslogtreecommitdiff
path: root/pack-refs.c
diff options
context:
space:
mode:
Diffstat (limited to 'pack-refs.c')
-rw-r--r--pack-refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-refs.c b/pack-refs.c
index f09a05422..6a689f35c 100644
--- a/pack-refs.c
+++ b/pack-refs.c
@@ -40,7 +40,7 @@ static int handle_one_ref(const char *path, const unsigned char *sha1,
fprintf(cb->refs_file, "%s %s\n", sha1_to_hex(sha1), path);
if (is_tag_ref) {
- struct object *o = parse_object(sha1);
+ struct object *o = parse_object_or_die(sha1, path);
if (o->type == OBJ_TAG) {
o = deref_tag(o, path, 0);
if (o)