dul-daemon: Implement has_revision in backend
authorJohn Carr <john.carr@unrouted.co.uk>
Wed, 17 Dec 2008 17:24:23 +0000 (17:24 +0000)
committerJohn Carr <john.carr@unrouted.co.uk>
Wed, 17 Dec 2008 17:24:23 +0000 (17:24 +0000)
bin/dul-daemon

index c8469a874e88b697fc0bb5c3e01b9da8fe01ee69..b0faf0d6b0bc140b1d8545c4137aa42368fd5f52 100755 (executable)
@@ -42,7 +42,7 @@ class GitBackend(Backend):
         return refs
 
     def has_revision(self, sha):
-        return False
+        return self.repo.get_object(sha) != None
 
     def apply_pack(self, refs, read):
         # store the incoming pack in the repository