# HG changeset patch # User Mads Kiilerich # Date 2017-01-22 01:16:52 # Node ID b57baf83dc3dce694786741c3ed81d7b2cac2a6d # Parent 347f3852908064f556585a145dd6a4d93c28d930 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 @@ -228,8 +228,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')))):