diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-11-13 04:56:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-13 04:56:38 +0800 |
commit | 836314c055bebed671a392a0cf8202e57efceb41 (patch) | |
tree | 5a5fc484378d333a4e8b6b3236ccf40e5cf660c6 /internal/build/util.go | |
parent | cb8bbe70819839e6399c44fff6a75ab3d16b8791 (diff) | |
parent | e401536c97f6c31a10f89952757dbb92cdf60e2d (diff) | |
download | dexon-836314c055bebed671a392a0cf8202e57efceb41.tar dexon-836314c055bebed671a392a0cf8202e57efceb41.tar.gz dexon-836314c055bebed671a392a0cf8202e57efceb41.tar.bz2 dexon-836314c055bebed671a392a0cf8202e57efceb41.tar.lz dexon-836314c055bebed671a392a0cf8202e57efceb41.tar.xz dexon-836314c055bebed671a392a0cf8202e57efceb41.tar.zst dexon-836314c055bebed671a392a0cf8202e57efceb41.zip |
Merge pull request #15464 from karalabe/docker-fix
dockerignore, internal/build: forward correct git folder
Diffstat (limited to 'internal/build/util.go')
-rw-r--r-- | internal/build/util.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/build/util.go b/internal/build/util.go index 91465c419..c6e059f0d 100644 --- a/internal/build/util.go +++ b/internal/build/util.go @@ -89,8 +89,8 @@ func RunGit(args ...string) string { return strings.TrimSpace(stdout.String()) } -// ReadGitFile returns content of file in .git directory. -func ReadGitFile(file string) string { +// readGitFile returns content of file in .git directory. +func readGitFile(file string) string { content, err := ioutil.ReadFile(path.Join(".git", file)) if err != nil { return "" |