commands/uninstall: do not log about global hooks with --local

This commit is contained in:
Taylor Blau 2018-04-18 15:21:59 -07:00
parent 3ce49b133a
commit 68da211304
2 changed files with 9 additions and 2 deletions

@ -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)" ]