Explorar el Código

dul-daemon: Implement has_revision in backend

John Carr hace 17 años
padre
commit
3d80a0b766
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bin/dul-daemon

+ 1 - 1
bin/dul-daemon

@@ -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