Fixed LocalWorkingDir for directories in submodules

This commit is contained in:
Michael Käufl 2015-05-30 00:50:07 +02:00
parent 04df6a404e
commit a0dc285f1a

@ -159,7 +159,8 @@ func processDotGitFile(file string) (string, string, error) {
}
contents := string(data[0:n])
wd, _ := os.Getwd()
wd := filepath.Dir(file)
if strings.HasPrefix(contents, gitPtrPrefix) {
dir := strings.TrimSpace(strings.Split(contents, gitPtrPrefix)[1])