# HG changeset patch # User Mads Kiilerich # Date 2017-01-22 01:16:52 # Node ID afda98017955bb9d97e330cabd34b1a6f32522a2 # Parent 5cc6a3308a8fe5f62ceec8f0466b60e69c1ff6e0 git: clarify that non-bare git repos not are supported (Issue #254) Non-bare repos must have a branch checked out ... and then you can't push to the branch. diff --git a/kallithea/lib/utils.py b/kallithea/lib/utils.py --- a/kallithea/lib/utils.py +++ b/kallithea/lib/utils.py @@ -233,8 +233,11 @@ def get_filesystem_repos(path): continue cur_path = os.path.join(root, subdir) + if isdir(cur_path, '.git'): + log.warning('ignoring non-bare Git repo: %s', cur_path) + continue + if (isdir(cur_path, '.hg') or - isdir(cur_path, '.git') or isdir(cur_path, '.svn') or isdir(cur_path, 'objects') and (isdir(cur_path, 'refs') or os.path.isfile(os.path.join(cur_path, 'packed-refs')))):