commit fed0b873e568aa771d704ea245efd739a07b41f4 from: Stefan Sperling date: Fri Mar 20 16:10:20 2020 UTC fix 'got fetch' to update the correct set of references in mirror mode commit - 8ceee1120def5e59bb412ae3be084c4007fbe734 commit + fed0b873e568aa771d704ea245efd739a07b41f4 blob - d3f4040208691bd0ca57368b8aa51dcfe00e6a21 blob + 772ad7cd8a8c906a870576dd6b2a5fc297cdef9f --- got/got.c +++ got/got.c @@ -1451,6 +1451,17 @@ cmd_fetch(int argc, char *argv[]) struct got_reference *ref; char *remote_refname; + if (remote->mirror_references) { + error = got_ref_alloc(&ref, refname, id); + if (error) + goto done; + error = got_ref_write(ref, repo); + got_ref_close(ref); + if (error) + goto done; + continue; + } + error = got_object_id_str(&id_str, id); if (error) goto done;