зеркало из https://github.com/microsoft/git.git
prune: do not show error from pack-redundant when no packs are found.
When there is no pack yet, git-prune leaked an error message from "git-pack-redundant --all" which complained that there is no pack. Squelch the annoying message. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Родитель
7d0e65b892
Коммит
3be7098ce4
|
@ -33,8 +33,7 @@ sed -ne '/unreachable /{
|
||||||
|
|
||||||
git-prune-packed $dryrun
|
git-prune-packed $dryrun
|
||||||
|
|
||||||
redundant=$(git-pack-redundant --all)
|
if redundant=$(git-pack-redundant --all 2>/dev/null) && test "" != "$redundant"
|
||||||
if test "" != "$redundant"
|
|
||||||
then
|
then
|
||||||
if test "" = "$dryrun"
|
if test "" = "$dryrun"
|
||||||
then
|
then
|
||||||
|
|
Загрузка…
Ссылка в новой задаче