Skip to content

Commit f0bced3

Browse files
committed
internal/build: fix Travis and AppVeyor commit string injection
1 parent f8a4e37 commit f0bced3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎internal/build/env.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func Env() Environment {
5757
case os.Getenv("CI") == "true" && os.Getenv("TRAVIS") == "true":
5858
commit := os.Getenv("TRAVIS_PULL_REQUEST_SHA")
5959
if commit == "" {
60-
os.Getenv("TRAVIS_COMMIT")
60+
commit = os.Getenv("TRAVIS_COMMIT")
6161
}
6262
return Environment{
6363
Name: "travis",
@@ -73,7 +73,7 @@ func Env() Environment {
7373
case os.Getenv("CI") == "True" && os.Getenv("APPVEYOR") == "True":
7474
commit := os.Getenv("APPVEYOR_PULL_REQUEST_HEAD_COMMIT")
7575
if commit == "" {
76-
os.Getenv("APPVEYOR_REPO_COMMIT")
76+
commit = os.Getenv("APPVEYOR_REPO_COMMIT")
7777
}
7878
return Environment{
7979
Name: "appveyor",

0 commit comments

Comments
 (0)