Skip to content

Commit

Permalink
Removed git pull calls
Browse files Browse the repository at this point in the history
  • Loading branch information
serban-nicusor-toptal committed Sep 27, 2022
1 parent f42712e commit 366a549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/stan/Utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def verifyChanges(String sourceCodePaths, String mergeWith = "develop") {
sh(script: "git checkout forkedOrigin/${env.CHANGE_BRANCH}", returnStdout: false)
}
else {
sh(script: "git pull && git checkout ${env.CHANGE_BRANCH}", returnStdout: false)
sh(script: "git checkout ${env.CHANGE_BRANCH}", returnStdout: false)
commitHash = sh(script: "git rev-parse HEAD | tr '\\n' ' '", returnStdout: true)
sh(script: "git checkout ${changeTarget}", returnStdout: false)
sh(script: "git checkout ${env.CHANGE_BRANCH}", returnStdout: false)
Expand All @@ -122,7 +122,7 @@ def verifyChanges(String sourceCodePaths, String mergeWith = "develop") {
return false
}
else{
sh(script: "git pull && git checkout ${env.BRANCH_NAME}", returnStdout: false)
sh(script: "git checkout ${env.BRANCH_NAME}", returnStdout: false)
commitHash = sh(script: "git rev-parse HEAD | tr '\\n' ' '", returnStdout: true)
changeTarget = sh(script: "git rev-parse HEAD^1 | tr '\\n' ' '", returnStdout: true)
}
Expand Down

0 comments on commit 366a549

Please sign in to comment.