Skip to content

Commit de1fc01

Browse files
authored
fix: add --branch flags to repo clone to support branch checkout (#1940)
1 parent e13be5c commit de1fc01

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

infra/prod/generate.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ steps:
2121
args:
2222
- 'clone'
2323
- '--depth=1'
24+
- '--branch=$_BRANCH'
2425
- $_FULL_REPOSITORY
2526
- name: gcr.io/cloud-builders/git
2627
id: configure-language-repo-name

infra/prod/stage-release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ steps:
2222
waitFor: ['-']
2323
args:
2424
- 'clone'
25+
- '--single-branch'
26+
- '--branch=$_BRANCH'
2527
- $_FULL_REPOSITORY
2628
- name: gcr.io/cloud-builders/git
2729
id: configure-language-repo-name

0 commit comments

Comments
 (0)