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

Commit e47e3a8

Browse files
committed
Merge pull request #3 from vaneyckt/make-plugin-work-when-tests-not-started-from-repo-root-folder
use git to find the root of the git repo
2 parents 2e6f20b + ea6a665 commit e47e3a8

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)