瀏覽代碼

Added detection of locally built git

Alois Mahdal 11 年之前
父節點
當前提交
3aa0ec9817
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. 6
    1
      dotfiles/git-universe/setup

+ 6
- 1
dotfiles/git-universe/setup 查看文件

@@ -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