uploadedOids: tools.NewStringSet(),
gitfilter: lfs.NewGitFilter(cfg),
lockVerifier: newLockVerifier(manifest),
- allowMissing: cfg.Git.Bool("lfs.allowincompletepush", true),
+ allowMissing: cfg.Git.Bool("lfs.allowincompletepush", false),
missing: make(map[string]string),
corrupt: make(map[string]string),
otherErrs: make([]error, 0),
}
if !c.allowMissing {
+ pushMissingHint := []string{
+ "hint: Your push was rejected due to missing or corrupt local objects.",
+ "hint: You can disable this check with: 'git config lfs.allowincompletepush true'",
+ }
+ Print(strings.Join(pushMissingHint, "\n"))
os.Exit(2)
}
}