Skip to content

Commit

Permalink
glock save: fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Figueiredo committed Oct 28, 2014
1 parent 6885d0e commit df56267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ func glockRepoRootForImportPath(importPath string) (*repoRoot, error) {
return rr, nil
}

var dir = pkg.Dir
var dir = pkg.ImportPath
for len(dir) > 1 {
dir = filepath.Dir(dir)
rr, err := fastRepoRoot(dir)
if err == nil {
return rr, nil
}
dir = filepath.Dir(dir)
}

return nil, fmt.Errorf("no version control directory found for %q", importPath)
Expand Down

0 comments on commit df56267

Please sign in to comment.