aboutsummaryrefslogtreecommitdiffstats
path: root/internal/build/env.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-11-13 04:51:19 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-13 04:52:41 +0800
commite401536c97f6c31a10f89952757dbb92cdf60e2d (patch)
tree5a5fc484378d333a4e8b6b3236ccf40e5cf660c6 /internal/build/env.go
parentcb8bbe70819839e6399c44fff6a75ab3d16b8791 (diff)
downloaddexon-e401536c97f6c31a10f89952757dbb92cdf60e2d.tar
dexon-e401536c97f6c31a10f89952757dbb92cdf60e2d.tar.gz
dexon-e401536c97f6c31a10f89952757dbb92cdf60e2d.tar.bz2
dexon-e401536c97f6c31a10f89952757dbb92cdf60e2d.tar.lz
dexon-e401536c97f6c31a10f89952757dbb92cdf60e2d.tar.xz
dexon-e401536c97f6c31a10f89952757dbb92cdf60e2d.tar.zst
dexon-e401536c97f6c31a10f89952757dbb92cdf60e2d.zip
dockerignore, internal/build: forward correct git folder
Diffstat (limited to 'internal/build/env.go')
-rw-r--r--internal/build/env.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/build/env.go b/internal/build/env.go
index 793242fcf..c9848bf82 100644
--- a/internal/build/env.go
+++ b/internal/build/env.go
@@ -82,14 +82,15 @@ func Env() Environment {
// LocalEnv returns build environment metadata gathered from git.
func LocalEnv() Environment {
env := applyEnvFlags(Environment{Name: "local", Repo: "ethereum/go-ethereum"})
- head := ReadGitFile("HEAD")
+
+ head := readGitFile("HEAD")
if splits := strings.Split(head, " "); len(splits) == 2 {
head = splits[1]
} else {
return env
}
if env.Commit == "" {
- env.Commit = ReadGitFile(head)
+ env.Commit = readGitFile(head)
}
if env.Branch == "" {
if head != "HEAD" {