Mercurial > hg > hg-git
changeset 280:d0594f7675e1
init: whitespace cleanup
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 11 Jan 2010 20:46:52 -0600 |
parents | a98e2115c1bf |
children | a14529b7b8f2 |
files | hggit/__init__.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/__init__.py +++ b/hggit/__init__.py @@ -33,13 +33,13 @@ def _local(path): p = util.drop_scheme('file', path) - if (os.path.exists(os.path.join(p, '.git')) and + 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 + 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)