Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit ea6a665

Browse files
author
Tom Van Eyck
committed
use git to find the root of the git repo
1 parent 2e6f20b commit ea6a665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codacy/git.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def self.git_commit
1818
end
1919

2020
def self.git_dir
21-
return Dir.pwd
21+
return `git rev-parse --show-toplevel`
2222
end
2323

2424
def self.git(command)

0 commit comments

Comments
 (0)