saltstack/salt — pull request #3439 by edlane (2013-01-25 09:43:34+00:00)
Title: Spurious Salt CLI error messages on CentOS 6.3 machines without "git" installed

On stock CentOS 6.3 machines without "git" installed the command "which git"
returns an error to stderr and as a consequence every Salt command prints this
same error to the screen. This one-line fix prevents this from occurring.

If "git" is not used then it should not be generating these spurious error messages.