git push handling fixes
authorJohn Carr <john.carr@unrouted.co.uk>
Thu, 18 Dec 2008 11:28:33 +0000 (11:28 +0000)
committerJohn Carr <john.carr@unrouted.co.uk>
Thu, 18 Dec 2008 11:28:33 +0000 (11:28 +0000)
bin/dul-daemon
dulwich/repo.py

index f34abd4d9693e3d18fbdc99c26598351a685d630..7f6a00ca7ab225154f3817cac1092fbb782deaaa 100755 (executable)
@@ -37,8 +37,8 @@ class GitBackend(Backend):
         refs = []
         if self.repo.head():
             refs.append(('HEAD', self.repo.head()))
-        for refsha in self.repo.heads().items():
-            refs.append(refsha)
+        for refsha in self.repo.heads().items():
+            refs.append(('refs/heads/'+ref,sha))
         return refs
 
     def has_revision(self, sha):
index f0f73581c5715548d2f13ade63e6983f2ff1b84e..0554883c2177c723001d610a45f22c98f889ec40 100644 (file)
@@ -92,7 +92,7 @@ class Repo(object):
 
   def set_ref(self, name, value):
     file = os.path.join(self.basedir(), name)
-    open(file, 'w').write(value)
+    open(file, 'w').write(value+"\n")
 
   def remove_ref(self, name):
     file = os.path.join(self.basedir(), name)