Skip to content

Commit 1dd63bb

Browse files
arschlesAaron Schlesinger
authored andcommitted
ref(build.go): use the run func on the 'git gc' command
1 parent c0b30d1 commit 1dd63bb

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
@@ -474,7 +474,7 @@ func build(conf *Config, builderKey, gitSha string) error {
474474
// git gc &>/dev/null
475475

476476
gcCmd := repoCmd(repoDir, "git", "gc")
477-
if err := gcCmd.Run(); err != nil {
477+
if err := run(gcCmd); err != nil {
478478
return fmt.Errorf("cleaning up the repository with %s (%s)", strings.Join(gcCmd.Args, " "), err)
479479
// TODO: is it ok not to exit even if the repo was not cleaned up
480480
}

0 commit comments

Comments
 (0)