Skip to content

Commit 9cc7852

Browse files
author
Matthew Fisher
committed
fix(gitreceive): ignore error if git gc fails
1 parent e07f9de commit 9cc7852

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

pkg/gitreceive/build.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,7 @@ func build(
258258
log.Info("Use 'deis open' to view this application in your browser\n")
259259
log.Info("To learn more, use 'deis help' or visit http://deis.io\n")
260260

261-
gcCmd := repoCmd(repoDir, "git", "gc")
262-
if err := run(gcCmd); err != nil {
263-
return fmt.Errorf("cleaning up the repository with %s (%s)", strings.Join(gcCmd.Args, " "), err)
264-
}
261+
run(repoCmd(repoDir, "git", "gc"))
265262

266263
return nil
267264
}

0 commit comments

Comments
 (0)