File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,17 @@ echo "Comparing main branch with $branch"
1010build_branch () {
1111 dir_name=$1
1212 if [ ! -d $dir_name ]; then
13- git clone -b $branch ${BASE_DIR} $dir_name
13+ git clone -b $dir_name ${BASE_DIR} $dir_name
1414 else
1515 # if it exists, just update it
1616 cd $dir_name
1717 git fetch origin
18- git rebase origin/$branch
18+ git rebase origin/$dir_name
1919 # rebase fails with conflict, delete and start over
2020 if [ " $? " != 0 ]; then
2121 cd ..
22- rm -rf $branch
23- git clone -b $branch ${BASE_DIR} $dir_name
22+ rm -rf $dir_name
23+ git clone -b $dir_name ${BASE_DIR} $dir_name
2424 else
2525 cd ..
2626 fi
4040compare=$( realpath google-benchmark/tools/compare.py)
4141build_branch $branch
4242build_branch " main"
43- baseline =$( realpath ${branch} /builddir/benchexe)
44- contender =$( realpath main/builddir/benchexe)
43+ contender =$( realpath ${branch} /builddir/benchexe)
44+ baseline =$( realpath main/builddir/benchexe)
4545
4646if [ -z " $1 " ]; then
4747 echo " Comparing all benchmarks .."
You can’t perform that action at this time.
0 commit comments