summaryrefslogtreecommitdiff
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 2c76fb181f..301fc60eae 100644
--- a/pack-refs.c
+++ b/pack-refs.c
@@ -66,7 +66,7 @@ static void prune_ref(struct ref_to_prune *r)
struct ref_lock *lock = lock_ref_sha1(r->name + 5, r->sha1);
if (lock) {
- unlink(git_path("%s", r->name));
+ unlink_or_warn(git_path("%s", r->name));
unlock_ref(lock);
}
}