struct string_list *refnames, struct strbuf *err)
{
struct ref_dir *packed;
struct string_list_item *refname;
int ret, needs_repacking = 0, removed = 0;
struct string_list *refnames, struct strbuf *err)
{
struct ref_dir *packed;
struct string_list_item *refname;
int ret, needs_repacking = 0, removed = 0;
assert(err);
/* Look for a packed ref */
for_each_string_list_item(refname, refnames) {
assert(err);
/* Look for a packed ref */
for_each_string_list_item(refname, refnames) {
- if (lock_packed_refs(refs->packed_ref_store, 0)) {
- unable_to_lock_message(refs->packed_ref_store->path, errno, err);
+ if (lock_packed_refs(refs, 0)) {
+ unable_to_lock_message(refs->path, errno, err);
/* Remove refnames from the cache */
for_each_string_list_item(refname, refnames)
/* Remove refnames from the cache */
for_each_string_list_item(refname, refnames)