Skip to content

Commit de48920

Browse files
author
Matthew Fisher
committed
Merge pull request #318 from bacongobbler/272-git-gc
fix(gitreceive): ignore error if `git gc` fails
2 parents e07f9de + 9cc7852 commit de48920

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)