Skip to content

Commit 8a93c83

Browse files
arschlesAaron Schlesinger
authored andcommitted
fix(build.go): use --output instead of redirecting stdout
makes it easier to construct the command with `exec.Command`
1 parent 1e58ae3 commit 8a93c83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/gitreceive/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func build(conf *Config, builderKey, gitSha string) error {
150150
// cd $REPO_DIR
151151
// # use Procfile if provided, otherwise try default process types from ./release
152152
// git archive --format=tar.gz ${GIT_SHA} > ${APP_NAME}.tar.gz
153-
gitArchiveCmd := repoCmd(repoDir, "git", "archive", "--format=tar.gz", fmt.Sprintf("%s > %s.tar.gz", gitSha, appName))
153+
gitArchiveCmd := repoCmd(repoDir, "git", "archive", "--format=tar.gz", fmt.Sprintf("--output=%s.tar.gz", appName), gitSha)
154154
gitArchiveCmd.Stdout = os.Stdout
155155
gitArchiveCmd.Stderr = os.Stderr
156156
if err := gitArchiveCmd.Run(); err != nil {

0 commit comments

Comments
 (0)