aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgit
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cgitize/cgit.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/cgitize/cgit.py b/cgitize/cgit.py
index 1fbddb7..c525214 100644
--- a/cgitize/cgit.py
+++ b/cgitize/cgit.py
@@ -166,10 +166,4 @@ class CGitRepositories:
repo_dir = self.get_repo_dir(repo)
with chdir(repo_dir):
with Git.setup_auth(repo):
- if not Git.check('remote', 'update', '--prune'):
- return False
- # In case the local repository is not a bare repository, but a
- # full-fledged working copy:
- if Git.check('rev-parse', '--verify', '--quiet', 'origin/master'):
- return Git.check('reset', '--soft', 'origin/master')
- return True
+ return Git.check('remote', 'update', '--prune')