From 80995bccde699395e47f6675b2a2858b13fe71da Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Thu, 9 Mar 2023 11:26:12 +0000 Subject: [PATCH] Add comment about FETCH_HEAD --- codearchiver/modules/git.py | 1 + 1 file changed, 1 insertion(+) diff --git a/codearchiver/modules/git.py b/codearchiver/modules/git.py index ec475e1..fda28e5 100644 --- a/codearchiver/modules/git.py +++ b/codearchiver/modules/git.py @@ -58,6 +58,7 @@ class Git(codearchiver.core.Module): _logger.error(f'Failed to update-ref refs/codearchiver/{branch} to {commit}') else: _logger.error(f'Failed to fetch {commit}') + # This leaves over a FETCH_HEAD file, but git-bundle does not care about that, so it can safely be ignored. _logger.info(f'Collecting repository metadata for index') _, refs, _ = codearchiver.subprocess.run_with_log(['git', 'show-ref'], cwd = directory)