commit 88f0d95e71087c4bef372371863e49ee4ab16c95 from: Omar Polo via: Thomas Adam date: Thu Jun 22 13:10:34 2023 UTC gather_on_disk_refs(): skip over bad refs noticed since gotwebd fails when there's a ref.lock file due to a concurrent update. discussed with stsp. commit - 8a9c582ba19796492dd5fa3415eccd70d406d7d4 commit + 88f0d95e71087c4bef372371863e49ee4ab16c95 blob - 1a28eb8bf0c585b2e04703c19a1c7b287ca3f878 blob + 2861fcb92918d1fb25573f0745ee98c008a4b0c9 --- lib/reference.c +++ lib/reference.c @@ -919,6 +919,8 @@ gather_on_disk_refs(struct got_reflist_head *refs, con case DT_REG: err = open_ref(&ref, path_refs, subdir, dent->d_name, 0, got_repo_get_object_format(repo)); + if (err && err->code == GOT_ERR_BAD_REF_NAME) + break; if (err) goto done; if (ref) {