From 8b040ff1903b620e0cc000a91adf918fdc590082 Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Tue, 2 May 2017 12:27:47 -0600 Subject: [PATCH] commands/uploader: exit iff lfs.allowincompletepush is false --- commands/uploader.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/commands/uploader.go b/commands/uploader.go index fe722e20..062eb37a 100644 --- a/commands/uploader.go +++ b/commands/uploader.go @@ -326,9 +326,13 @@ func (c *uploadContext) Await() { for name, oid := range corrupt { Print(" (corrupt) %s (%s)", name, oid) } + + if !c.allowMissing { + os.Exit(2) + } } - if len(c.tq.Errors()) > 0 { + if len(others) > 0 { os.Exit(2) }