소스 검색

dul-daemon: Implement has_revision in backend

John Carr 16 년 전
부모
커밋
84f6b2af07
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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