Merge pull request #4 from tomgi/bare_repos

Add support for bare repositories
This commit is contained in:
Tomasz Gieniusz 2013-02-05 06:30:31 -08:00
commit 8f8a85b5e8
1 changed files with 1 additions and 1 deletions

View File

@ -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