Skip to content

Commit b734a17

Browse files
authored
Merge pull request #18 from jorgesolebur/feature/UseMainBranchCommitAsDefault
Use main branch latest commit if ref not specified.
2 parents 9563796 + d818da7 commit b734a17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cumulusci_ado/vcs/ado/adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ def get_ref(self, ref_sha: str) -> Optional[ADORef]:
780780
refs: list[GitRef] = self.git_client.get_refs(
781781
self.id,
782782
self.project_id,
783-
filter=ref_sha,
783+
filter=(ref_sha or f"heads/{self.default_branch}"),
784784
include_statuses=True,
785785
latest_statuses_only=True,
786786
peel_tags=True,

0 commit comments

Comments
 (0)