diff options
author | Zuul <zuul@review.opendev.org> | 2023-04-13 22:55:42 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-04-13 22:55:42 +0000 |
commit | 8faa62d1e241bab5d0d8781e76c836cc3ce8b45d (patch) | |
tree | 220962e2b81859a6fed82294f7834952023b57d5 | |
parent | 5f001bda683f47a5974933128f126b9ef2860986 (diff) | |
parent | 183d221124b506df4a3d227bfb81488eb8609b3e (diff) | |
download | zuul-8faa62d1e241bab5d0d8781e76c836cc3ce8b45d.tar.gz |
Merge "Log commit SHA when getting files from repo"
-rw-r--r-- | zuul/merger/merger.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/zuul/merger/merger.py b/zuul/merger/merger.py index 1df833bc5..845925bfa 100644 --- a/zuul/merger/merger.py +++ b/zuul/merger/merger.py @@ -722,9 +722,11 @@ class Repo(object): ret = {} repo = self.createRepoObject(zuul_event_id) if branch: - tree = repo.heads[branch].commit.tree + head = repo.heads[branch].commit else: - tree = repo.commit(commit).tree + head = repo.commit(commit) + log.debug("Getting files for %s at %s", self.local_path, head.hexsha) + tree = head.tree for fn in files: if fn in tree: if tree[fn].type != 'blob': |