• M
    Detect `git rev-parse` output when on git version < 2.5 · 0e1ae6fd
    Mislav Marohnić 提交于
    We can't use `--git-path` on git versions older than 2.5. Those versions
    will simply echo `--git-path` as the first line of the output. Instead
    of stat'ing that as a file, skip this case and proceed immediately to
    fallback for other git versions.
    0e1ae6fd
git.go 4.9 KB