good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit f0bced30 authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

internal/build: fix Travis and AppVeyor commit string injection

parent f8a4e379
No related branches found
No related tags found
Loading
......@@ -57,7 +57,7 @@ func Env() Environment {
case os.Getenv("CI") == "true" && os.Getenv("TRAVIS") == "true":
commit := os.Getenv("TRAVIS_PULL_REQUEST_SHA")
if commit == "" {
os.Getenv("TRAVIS_COMMIT")
commit = os.Getenv("TRAVIS_COMMIT")
}
return Environment{
Name: "travis",
......@@ -73,7 +73,7 @@ func Env() Environment {
case os.Getenv("CI") == "True" && os.Getenv("APPVEYOR") == "True":
commit := os.Getenv("APPVEYOR_PULL_REQUEST_HEAD_COMMIT")
if commit == "" {
os.Getenv("APPVEYOR_REPO_COMMIT")
commit = os.Getenv("APPVEYOR_REPO_COMMIT")
}
return Environment{
Name: "appveyor",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment