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"
10
10
build_branch () {
11
11
dir_name=$1
12
12
if [ ! -d $dir_name ]; then
13
- git clone -b $branch ${BASE_DIR} $dir_name
13
+ git clone -b $dir_name ${BASE_DIR} $dir_name
14
14
else
15
15
# if it exists, just update it
16
16
cd $dir_name
17
17
git fetch origin
18
- git rebase origin/$branch
18
+ git rebase origin/$dir_name
19
19
# rebase fails with conflict, delete and start over
20
20
if [ " $? " != 0 ]; then
21
21
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
24
24
else
25
25
cd ..
26
26
fi
40
40
compare=$( realpath google-benchmark/tools/compare.py)
41
41
build_branch $branch
42
42
build_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)
45
45
46
46
if [ -z " $1 " ]; then
47
47
echo " Comparing all benchmarks .."
You can’t perform that action at this time.
0 commit comments