commands/uploader: exit iff lfs.allowincompletepush is false

This commit is contained in:
Taylor Blau 2017-05-02 12:27:47 -06:00
parent d68e1ec408
commit 8b040ff190

@ -326,9 +326,13 @@ func (c *uploadContext) Await() {
for name, oid := range corrupt { for name, oid := range corrupt {
Print(" (corrupt) %s (%s)", name, oid) 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) os.Exit(2)
} }