From 0ab1f26154aa24b1a4cc6c6cc8ecfeb63db1c555 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 29 Mar 2021 21:31:58 +0300 Subject: add a helpful comment --- cgitize/cgit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgitize/cgit.py b/cgitize/cgit.py index 712bc55..c0c979d 100644 --- a/cgitize/cgit.py +++ b/cgitize/cgit.py @@ -159,6 +159,8 @@ class Output: with setup_git_auth(repo): if not Git.check('remote', 'update', '--prune'): return False + # In case the repository mirror is not a bare repository, but a + # proper workdir: if Git.check('rev-parse', '--verify', '--quiet', 'origin/master'): return Git.check('reset', '--soft', 'origin/master') return True -- cgit v1.2.3