Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #60 from jumptrading/fix-perfcheck-ref-branch
Browse files Browse the repository at this point in the history
perfcheck: Fetch reference branch in reference clone
  • Loading branch information
mjs authored Apr 3, 2018
2 parents 9256be5 + 2e58392 commit 1b80854
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions perfcheck
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ reference_bench_output="$PWD/reference.bench"
title "Building benchcheck tool"
go build -o benchcheck/benchcheck ./benchcheck || exit 1

title "Fetching upstream reference branch"
git fetch --depth=50 origin perfcheck-reference

title "Setting up reference branch"

# Create a temporary GOPATH which gets removed on exit.
Expand All @@ -64,6 +61,11 @@ set -e
clone_dir=$ref_gopath/src/$GO_PACKAGE
git clone --quiet . $clone_dir
pushd $clone_dir > /dev/null

title "Fetching upstream reference branch"
git remote add upstream https://github.com/jumptrading/influx-spout.git
git fetch --depth=10 upstream perfcheck-reference

git checkout --quiet -b perfcheck $REFERENCE_REVISION > /dev/null
popd > /dev/null
set +e
Expand Down

0 comments on commit 1b80854

Please sign in to comment.