mirror of https://github.com/tomgi/git_stats.git
Merge pull request #4 from tomgi/bare_repos
Add support for bare repositories
This commit is contained in:
commit
8f8a85b5e8
|
@ -18,7 +18,7 @@ module GitStats
|
|||
|
||||
|
||||
def validate_repo_path(repo_path)
|
||||
raise ArgumentError, "#{repo_path} is not a git repository" unless Dir.exists?("#{repo_path}/.git")
|
||||
raise ArgumentError, "#{repo_path} is not a git repository" unless (Dir.exists?("#{repo_path}/.git") || File.exists?("#{repo_path}/HEAD"))
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue