Explorar el Código

Added detection of locally built git

Alois Mahdal hace 12 años
padre
commit
3aa0ec9817
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6
    1
      dotfiles/git-universe/setup

+ 6
- 1
dotfiles/git-universe/setup Ver fichero

@@ -1,7 +1,12 @@
1 1
 #!/bin/bash
2 2
 
3
-gitver=`git --version | cut -d ' ' -f 3`
3
+git_binary=`which git`
4 4
 
5
+if [[ -x $HOME/bin/git ]]; then
6
+    git_binary=$HOME/bin/git
7
+fi
8
+
9
+gitver=`$git_binary --version | cut -d ' ' -f 3`
5 10
 if [[ "$gitver" > "1.8" ]]; then
6 11
     tilde='~'
7 12
 else