Add some debugging about ref updating

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-01-18 18:52:45 +00:00 committed by Dennis Gilmore
parent d3e701e10f
commit 4edf567bd4
2 changed files with 9 additions and 2 deletions

View file

@ -63,10 +63,13 @@ class Tree(OSTree):
if self.extra_config:
tag_ref = self.extra_config.get('tag_ref', True)
if not tag_ref:
print('Not updating ref as configured')
return
ref = get_ref_from_treefile(self.treefile)
commitid = get_commitid_from_commitid_file(self.commitid_file)
print('Ref: %r, Commit ID: %r' % (ref, commitid))
if ref and commitid:
print('Updating ref')
# Let's write the tag out ourselves
heads_dir = os.path.join(self.repo, 'refs', 'heads')
if not os.path.exists(heads_dir):