Skip to content

Commit 12a9c0c

Browse files
arschlesAaron Schlesinger
authored andcommitted
fix(build.go): use the correct repo dir
1 parent 650557c commit 12a9c0c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

pkg/gitreceive/build.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,7 @@ func build(conf *Config, builderKey, gitSha string) error {
123123
// REPO_DIR="${ROOT_DIR}/${REPO}"
124124
// BUILD_DIR="${REPO_DIR}/build"
125125
// CACHE_DIR="${REPO_DIR}/cache"
126-
rootDir, err := os.Getwd()
127-
if err != nil {
128-
return nil
129-
}
130-
repoDir := filepath.Join(rootDir, repo)
126+
repoDir := filepath.Join(conf.GitHome, repo)
131127
buildDir := filepath.Join(repoDir, "build")
132128
// cacheDir := filepath.Join(repoDir, "cache")
133129
//

0 commit comments

Comments
 (0)