Browse Source

Added detection of locally built git

Alois Mahdal 12 years ago
parent
commit
3aa0ec9817
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      dotfiles/git-universe/setup

+ 6
- 1
dotfiles/git-universe/setup View File

1
 #!/bin/bash
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
 if [[ "$gitver" > "1.8" ]]; then
10
 if [[ "$gitver" > "1.8" ]]; then
6
     tilde='~'
11
     tilde='~'
7
 else
12
 else