mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-01 13:52:54 +00:00
internal/build: fix Travis and AppVeyor commit string injection
This commit is contained in:
parent
f8a4e37968
commit
f0bced30bb
1 changed files with 2 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ func Env() Environment {
|
||||||
case os.Getenv("CI") == "true" && os.Getenv("TRAVIS") == "true":
|
case os.Getenv("CI") == "true" && os.Getenv("TRAVIS") == "true":
|
||||||
commit := os.Getenv("TRAVIS_PULL_REQUEST_SHA")
|
commit := os.Getenv("TRAVIS_PULL_REQUEST_SHA")
|
||||||
if commit == "" {
|
if commit == "" {
|
||||||
os.Getenv("TRAVIS_COMMIT")
|
commit = os.Getenv("TRAVIS_COMMIT")
|
||||||
}
|
}
|
||||||
return Environment{
|
return Environment{
|
||||||
Name: "travis",
|
Name: "travis",
|
||||||
|
|
@ -73,7 +73,7 @@ func Env() Environment {
|
||||||
case os.Getenv("CI") == "True" && os.Getenv("APPVEYOR") == "True":
|
case os.Getenv("CI") == "True" && os.Getenv("APPVEYOR") == "True":
|
||||||
commit := os.Getenv("APPVEYOR_PULL_REQUEST_HEAD_COMMIT")
|
commit := os.Getenv("APPVEYOR_PULL_REQUEST_HEAD_COMMIT")
|
||||||
if commit == "" {
|
if commit == "" {
|
||||||
os.Getenv("APPVEYOR_REPO_COMMIT")
|
commit = os.Getenv("APPVEYOR_REPO_COMMIT")
|
||||||
}
|
}
|
||||||
return Environment{
|
return Environment{
|
||||||
Name: "appveyor",
|
Name: "appveyor",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue