We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0431b7e commit d841859Copy full SHA for d841859
ci/maintenance.sh
@@ -1,6 +1,7 @@
1
sync_branches () {
2
local fail_
3
local fail=0
4
+ local initial_branch=
5
6
echo "sync_branches_with_main on range $base_sha..$head_sha"
7
@@ -9,6 +10,7 @@ sync_branches () {
9
10
set_step_fail "sync_branches"
11
return
12
fi
13
+ initial_branch=$(git rev-parse --abbrev-ref @)
14
for branch in $@ ; do
15
echo "patching branch $branch"
16
git switch -d
@@ -35,6 +37,7 @@ sync_branches () {
35
37
36
38
git push origin HEAD:$branch
39
done
40
+ git switch $initial_branch
41
42
if [[ "$fail" == "1" ]]; then
43
0 commit comments