Skip to content

Commit b7d5dab

Browse files
committed
BugFix ref for branches.
Signed-off-by: Rupesh J <rupesh.j@salesforce.com>
1 parent fab4c8c commit b7d5dab

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

cumulusci_ado/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.0-dev.0"
1+
__version__ = "0.1.0-dev.1"

cumulusci_ado/cumulusci_plugin.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,3 @@ project:
4848
3:
4949
class_path: cumulusci.tasks.release_notes.parser.IssuesParser
5050
title: Issues Closed
51-
#custom:
52-
# ado_feedname: "Project Feed Name" #Enables project specific feednames.

cumulusci_ado/vcs/ado/adapter.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,8 +792,10 @@ def get_ref(self, ref_sha: str) -> Optional[ADORef]:
792792
top=1,
793793
)
794794

795-
if refs and refs[0].peeled_object_id:
796-
commit = self.get_commit(refs[0].peeled_object_id)
795+
if refs and (refs[0].peeled_object_id or refs[0].object_id):
796+
commit = self.get_commit(
797+
refs[0].peeled_object_id or refs[0].object_id or ""
798+
)
797799
return ADORef(refs[0], sha=commit.sha)
798800

799801
raise

0 commit comments

Comments
 (0)