Skip to content

Commit 605e3c4

Browse files
authored
checkout branch always in clone scripts (#22)
2 parents 7a9086d + 1a3d108 commit 605e3c4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/util.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ clone_gitlab() (
9696
fi
9797

9898
git clone $URL
99+
cd $repo
100+
set_branch
101+
git checkout $CODE_BRANCH 2>/dev/null || true
99102
)
100103

101104

@@ -111,6 +114,9 @@ clone_github() (
111114
fi
112115

113116
git clone $URL
117+
cd $repo
118+
set_branch
119+
git checkout $CODE_BRANCH 2>/dev/null || true
114120
)
115121

116122

0 commit comments

Comments
 (0)