Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
clear_packed_ref_cache(): don't protest if the lock is held
[gitweb.git]
/
refs
/
packed-backend.c
diff --git
a/refs/packed-backend.c
b/refs/packed-backend.c
index f27943f9a156e6e1f1b498d2cc5f2abe4b65b6fc..96d92a5eea6063c1a71a29342baf491587b99385 100644
(file)
--- a/
refs/packed-backend.c
+++ b/
refs/packed-backend.c
@@
-133,8
+133,6
@@
static void clear_packed_ref_cache(struct packed_ref_store *refs)
if (refs->cache) {
struct packed_ref_cache *cache = refs->cache;
- if (is_lock_file_locked(&refs->lock))
- die("BUG: packed-ref cache cleared while locked");
refs->cache = NULL;
release_packed_ref_cache(cache);
}