<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -36,6 +36,12 @@ def _local(path):
     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</diff>
      <filename>hggit/__init__.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1ddf0afc5e77921e6ee39b08d89c9150362506d0</id>
    </parent>
  </parents>
  <author>
    <name>Lincoln Stoll</name>
    <email>lstoll@lstoll.net</email>
  </author>
  <url>http://github.com/schacon/hg-git/commit/00d3d50480b951b9325f443ff5bce5e182c82aec</url>
  <id>00d3d50480b951b9325f443ff5bce5e182c82aec</id>
  <committed-date>2009-10-26T09:52:32-07:00</committed-date>
  <authored-date>2009-10-26T09:52:32-07:00</authored-date>
  <message>Enable detection of bare repositories as a local git repo</message>
  <tree>a98b9ccfccb3e9fa19fc40584dea236593098224</tree>
  <committer>
    <name>Lincoln Stoll</name>
    <email>lstoll@lstoll.net</email>
  </committer>
</commit>
