diff --git a/lib/gitlab_git/commit.rb b/lib/gitlab_git/commit.rb index 4070448..9ce40fc 100644 --- a/lib/gitlab_git/commit.rb +++ b/lib/gitlab_git/commit.rb @@ -26,6 +26,10 @@ class << self # ) # def where(options) + if options.has_key?(:path) and options[:path].present? + options[:follow] = true + end + repo = options.delete(:repo) raise 'Gitlab::Git::Repository is required' unless repo.respond_to?(:log)