[commit: ghc] wip/jenkins: Trim whitespace from git output (d0f51f4)

git at git.haskell.org git at git.haskell.org
Sun Jun 4 15:06:30 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/jenkins
Link       : http://ghc.haskell.org/trac/ghc/changeset/d0f51f4061363fbbc884705c2372dba213bbb4e2/ghc

>---------------------------------------------------------------

commit d0f51f4061363fbbc884705c2372dba213bbb4e2
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sun Jun 4 11:00:28 2017 -0400

    Trim whitespace from git output


>---------------------------------------------------------------

d0f51f4061363fbbc884705c2372dba213bbb4e2
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 410a86d..b709774 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -279,7 +279,7 @@ def testGhc(params) {
 }
 
 def resolveCommitSha(String ref) {
-  return sh(script: "git rev-parse ${ref}", returnStdout: true)
+  return sh(script: "git rev-parse ${ref}", returnStdout: true).trim()
 }
 
 // Push update to ghc.readthedocs.org.



More information about the ghc-commits mailing list