Merge branch 'ps/repack-keep-unreachable-in-unpacked-repo'
"git repack --keep-unreachable" to send unreachable objects to the main pack "git repack -ad" produces did not work when there is no existing packs, which has been corrected. * ps/repack-keep-unreachable-in-unpacked-repo: builtin/repack: fix `--keep-unreachable` when there are no packs
This commit is contained in:
@ -1377,9 +1377,12 @@ int cmd_repack(int argc,
|
||||
"--unpack-unreachable");
|
||||
} else if (keep_unreachable) {
|
||||
strvec_push(&cmd.args, "--keep-unreachable");
|
||||
strvec_push(&cmd.args, "--pack-loose-unreachable");
|
||||
}
|
||||
}
|
||||
|
||||
if (keep_unreachable && delete_redundant &&
|
||||
!(pack_everything & PACK_CRUFT))
|
||||
strvec_push(&cmd.args, "--pack-loose-unreachable");
|
||||
} else if (geometry.split_factor) {
|
||||
strvec_push(&cmd.args, "--stdin-packs");
|
||||
strvec_push(&cmd.args, "--unpacked");
|
||||
|
Reference in New Issue
Block a user