prepare for auto updating of dev site
diff --git a/site-dev/build.gradle b/site-dev/build.gradle
index 1271c25..7d6cb84 100644
--- a/site-dev/build.gradle
+++ b/site-dev/build.gradle
@@ -156,11 +156,11 @@
def latestCommit = gitin.log(maxCommits: 1)[0].abbreviatedId
def gitout
- if (!project.hasProperty('skipClone')) {
+ if (project.hasProperty('skipClone')) {
+ gitout = grgit.open(dir: stagingDevSite)
+ } else {
println "Cloning $gitboxUrl to $stagingDevSite. This may take a few minutes ..."
gitout = grgit.clone(dir: stagingDevSite, uri: gitboxUrl)
- } else {
- gitout = grgit.open(dir: stagingDevSite)
}
gitout.checkout(branch: 'asf-site')
@@ -218,6 +218,6 @@
}
// Because git.push() fails to authenticate, run git push directly.
- shell "git push ${gitboxUrl} asf-site"
+ shell "git push asf-site"
}
}