Browse Source

avoid git push.default w/ git 1

Kyle P Davis 9 years ago
parent
commit
ba766f82c1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      gimmes/git

+ 3 - 1
gimmes/git

@@ -7,7 +7,9 @@ has git  ||  gimme_pkg git
 
 [[ "$(git config --global --get color.ui)" ]]  ||  git config --global color.ui true
 
-[[ "$(git config --global --get push.default)" ]]  ||  git config --global push.default simple
+if ! git --version | grep -q 'git version 1'; then
+	[[ "$(git config --global --get push.default)" ]]  ||  git config --global push.default simple
+fi
 
 if ! [[ "$(git config --global --get credential.helper)" ]]; then
 	if [[ "$OS" = "Darwin" ]]; then