From 9d65ee93f8f213f4ef7c2d60a9d740b7fa3e2209 Mon Sep 17 00:00:00 2001 From: Alan Myrvold Date: Tue, 2 Oct 2018 13:57:36 -0400 Subject: [PATCH] [BEAM-4496] Fix #3 for branch fetch failure on job_PostCommit_Website_Publish (#6544) --- website/build.gradle | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/website/build.gradle b/website/build.gradle index fd9c55a667c00..26cf0f228fc43 100644 --- a/website/build.gradle +++ b/website/build.gradle @@ -126,9 +126,8 @@ task commitWebsite << { // get the latest commit on master def latestCommit = grgit.log(maxCommits: 1)[0].abbreviatedId - shell "git fetch ${gitboxUrl} asf-site" + shell "git fetch --force origin +asf-site:asf-site" git.checkout(branch: 'asf-site') - shell "git reset --hard origin/asf-site" // Delete the previous content. git.remove(patterns: [ 'website/generated-content' ])