Skip to content
Snippets Groups Projects
Commit 9f5a7a5d authored by Lincoln Stoll's avatar Lincoln Stoll
Browse files

Enable detection of bare repositories as a local git repo

parent fdb8065e
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,12 @@
if (os.path.exists(os.path.join(p, '.git')) and
not os.path.exists(os.path.join(p, '.hg'))):
return gitrepo
# detect a bare repository
if (os.path.exists(os.path.join(p, 'HEAD')) and
os.path.exists(os.path.join(p, 'objects')) and
os.path.exists(os.path.join(p, 'refs')) and
not os.path.exists(os.path.join(p, '.hg'))):
return gitrepo
return _oldlocal(path)
hg.schemes['file'] = _local
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment