mirror of https://github.com/tomgi/git_stats.git
10 lines
192 B
Ruby
10 lines
192 B
Ruby
|
# -*- encoding : utf-8 -*-
|
||
|
module GitStats
|
||
|
class Validator
|
||
|
|
||
|
def valid_repo_path?(repo_path)
|
||
|
Dir.exists?("#{repo_path}/.git") || File.exists?("#{repo_path}/HEAD")
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|