Use OSTYPE instead of uname whenever possible for better speed.

This commit is contained in:
Hong Xu 2016-10-05 01:06:59 -07:00
commit 630211852b
6 changed files with 9 additions and 9 deletions

View file

@ -2771,6 +2771,6 @@ __git_complete gitk __gitk_main
# when the user has tab-completed the executable name and consequently
# included the '.exe' suffix.
#
if [ Cygwin = "$(uname -o 2>/dev/null)" ]; then
if [[ "$OSTYPE" = cygwin* ]]; then
__git_complete git.exe __git_main
fi