瀏覽代碼

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