mirror of
https://github.com/tomgi/git_stats.git
synced 2024-12-22 13:32:17 +01:00
support for bare repositories
This commit is contained in:
parent
c3aff444fc
commit
768b1c1c8d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue