commands/uninstall: do not log about global hooks with --local
This commit is contained in:
parent
3ce49b133a
commit
68da211304
@ -14,7 +14,9 @@ func uninstallCommand(cmd *cobra.Command, args []string) {
|
||||
uninstallHooksCommand(cmd, args)
|
||||
}
|
||||
|
||||
Print("Global Git LFS configuration has been removed.")
|
||||
if !localInstall {
|
||||
Print("Global Git LFS configuration has been removed.")
|
||||
}
|
||||
}
|
||||
|
||||
// uninstallHooksCmd removes any hooks created by Git LFS.
|
||||
|
@ -169,7 +169,12 @@ begin_test "uninstall --local"
|
||||
[ "global clean" = "$(git config --global filter.lfs.clean)" ]
|
||||
[ "global filter" = "$(git config --global filter.lfs.process)" ]
|
||||
|
||||
git lfs uninstall --local
|
||||
git lfs uninstall --local 2>&1 | tee uninstall.log
|
||||
if [ ${PIPESTATUS[0]} -ne 0 ]; then
|
||||
echo >&2 "fatal: expected 'git lfs uninstall --local' to succeed"
|
||||
exit 1
|
||||
fi
|
||||
grep -v "Global Git LFS configuration has been removed." uninstall.log
|
||||
|
||||
# global configs
|
||||
[ "global smudge" = "$(git config --global filter.lfs.smudge)" ]
|
||||
|
Loading…
Reference in New Issue
Block a user