summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-04-19 10:53:33 +0200
committerJürg Billeter <j@bitron.ch>2018-04-30 11:03:43 +0200
commitd1c3d705e196122086a7599bad0d79a52c71830d (patch)
tree7f37a65ec7a3acd1d5b3d09eefa5f0979bd90aca
parent06ae434a7017edbf67bf46c3fe2e327466801787 (diff)
downloadbuildstream-d1c3d705e196122086a7599bad0d79a52c71830d.tar.gz
_artifactcache/pushreceive.py: Fix commit object check in send_info()
Fixes #325.
-rw-r--r--buildstream/_artifactcache/pushreceive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_artifactcache/pushreceive.py b/buildstream/_artifactcache/pushreceive.py
index a1282d32d..b1705d8f0 100644
--- a/buildstream/_artifactcache/pushreceive.py
+++ b/buildstream/_artifactcache/pushreceive.py
@@ -155,7 +155,7 @@ class PushMessageWriter(object):
for ref in refs:
_, checksum = repo.resolve_rev(ref, True)
if checksum:
- _, has_object = repo.has_object(OSTree.ObjectType.COMMIT, ref, None)
+ _, has_object = repo.has_object(OSTree.ObjectType.COMMIT, checksum, None)
if has_object:
ref_map[ref] = checksum