diff --git a/build.sh b/build.sh index 27c82282d127..dad9e9eb6a97 100755 --- a/build.sh +++ b/build.sh @@ -50,11 +50,11 @@ echo "Setting ssh key" echo $BUILD_SSH_KEY > $WORK_DIR/id_priv SSH_COMMAND="ssh -i $WORK_DIR/id_priv" echo $SSH_COMMAND -git config core.sshcommand $SSH_COMMAND +git config --global core.sshcommand $SSH_COMMAND echo "Cloning $LIVE_REPO $REPO_DIR" -git config core.sshcommand +git config --get core.sshcommand git -c core.sshCommand="$SSH_COMMAND" clone $LIVE_REPO $REPO_DIR 2>&1 | tee -a $REPORT_FILE -git config core.sshcommand +git config --get core.sshcommand echo "Checking out $GIT_LIVE_BRANCH" cd $REPO_DIR git checkout $GIT_LIVE_BRANCH 2>&1 | tee -a ../$REPORT_FILE @@ -63,14 +63,14 @@ mkdir -p $BUILD_DIR echo "cp -r ../$SPHINX_DIR/* $BUILD_DIR" 2>&1 | tee -a ../$REPORT_FILE cp -r ../$SPHINX_DIR/* $BUILD_DIR 2>&1 | tee -a ../$REPORT_FILE -git config core.sshcommand +git config --get core.sshcommand echo "Setting credentials" git config user.email "noreply_build_worker@cloudflare.com" git config user.name "Cloudflare build worker" git config core.pager cat git config --list -git config core.sshcommand +git config --get core.sshcommand echo "Commit and push to $GIT_LIVE_BRANCH, with message $GIT_COMMIT_MESSAGE" 2>&1 | tee -a ../$REPORT_FILE git add . 2>&1 | tee -a ../$REPORT_FILE git commit -m "$GIT_COMMIT_MESSAGE" 2>&1 | tee -a ../$REPORT_FILE