Skip to content

Commit b23ad2e

Browse files
authored
[Bot][HIP] Add prune to git fetch step for hip bot (#531)
We saw that this bot was broken due to branch name conflict when running git fetch. Adding --prune to prevent such issue.
1 parent 93611e4 commit b23ad2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zorg/buildbot/builders/annotated/hip-build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if [ ! -d "${LLVM_ROOT}" ]; then
5252
fi
5353

5454
build_step "Updating llvm-project repo"
55-
git -C "${LLVM_ROOT}" fetch origin
55+
git -C "${LLVM_ROOT}" fetch --prune origin
5656
git -C "${LLVM_ROOT}" reset --hard "${LLVM_REVISION}"
5757
}
5858

@@ -64,7 +64,7 @@ if [ ! -d "${TESTSUITE_ROOT}" ]; then
6464
fi
6565

6666
build_step "Updating llvm-test-suite repo"
67-
git -C "${TESTSUITE_ROOT}" fetch origin
67+
git -C "${TESTSUITE_ROOT}" fetch --prune origin
6868
git -C "${TESTSUITE_ROOT}" reset --hard origin/main
6969
}
7070

0 commit comments

Comments
 (0)