diff options
-rw-r--r-- | cgitize/cgit.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |