Merge pull request #1518 from sschuberth/git-abs-toplevel

Simplify getting the absolute Git root directory
This commit is contained in:
Taylor Blau 2016-09-12 15:02:52 -06:00 committed by GitHub
commit 59eda37833

@ -596,11 +596,7 @@ func GitAndRootDirs() (string, string, error) {
return absGitDir, "", nil
}
absRootDir, err := filepath.Abs(paths[1])
if err != nil {
return "", "", fmt.Errorf("Error converting %q to absolute: %s", paths[1], err)
}
absRootDir := paths[1]
return absGitDir, absRootDir, nil
}