Skip to content

Commit

Permalink
Don't delete the checkout we just did in the previous step
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed May 28, 2020
1 parent 826e3a4 commit afa5d90
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dev/create-release/release-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,12 @@ BASE_DIR=$(pwd)
init_java
init_maven_sbt

rm -rf spark
git clone "$ASF_REPO"
# Only clone the repo fresh when not present, otherwise use checkout
if [ ! -d spark ]; then
git clone "$ASF_REPO"
fi
cd spark
git fetch
git checkout $GIT_REF
git_hash=`git rev-parse --short HEAD`
echo "Checked out Spark git hash $git_hash"
Expand Down

0 comments on commit afa5d90

Please sign in to comment.