Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/savage.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <code@rebertia.com>2015-03-09 06:48:57 +0300
committerChris Rebert <code@rebertia.com>2015-03-09 06:48:57 +0300
commit2fdf209af522850dd2a27a75f2e101972d637fc0 (patch)
tree1d5dbec75163bc4e1b1e57827b14cb26ba5f0f4a
parentddbf069b6779a2052fb494a571c89e4e8640acb4 (diff)
Use force pushes
-rw-r--r--src/main/scala/com/getbootstrap/savage/server/PullRequestPusher.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/com/getbootstrap/savage/server/PullRequestPusher.scala b/src/main/scala/com/getbootstrap/savage/server/PullRequestPusher.scala
index b24bd48..4fd606f 100644
--- a/src/main/scala/com/getbootstrap/savage/server/PullRequestPusher.scala
+++ b/src/main/scala/com/getbootstrap/savage/server/PullRequestPusher.scala
@@ -40,7 +40,7 @@ class PullRequestPusher extends GitHubActorWithLogging {
}
val branchSpec = s"${commitSha.sha}:${newBranch.asRef}"
val destRemote = settings.TestRepoId.asPushRemote
- val success = SimpleSubprocess(Seq("git", "push", destRemote, branchSpec)).run() match {
+ val success = SimpleSubprocess(Seq("git", "push", "-f", destRemote, branchSpec)).run() match {
case SuccessfulExit(_) => {
log.info(s"Successfully pushed ${commitSha} from ${originRepo} to ${destRemote} as ${newBranch}")
true