diff options
author | Sato Hiroyuki <sathiroyuki@gmail.com> | 2013-04-25 19:58:25 +0000 |
---|---|---|
committer | Sato Hiroyuki <sathiroyuki@gmail.com> | 2013-04-25 20:54:00 +0000 |
commit | 05c2c15cd1672a46e2b31e2ba1e71b872e8993e3 (patch) | |
tree | 119074292800a43cf1915bcb818b89b69058b589 /lib/extracts_path.rb | |
parent | 963ec23407760bcd86ac989916140b1e8f6d5c0c (diff) | |
download | gitlab-ce-05c2c15cd1672a46e2b31e2ba1e71b872e8993e3.tar.gz |
Fix Gitlab::Git::Repository#commit returns wrong commit, if commit_id is "tag name".
Diffstat (limited to 'lib/extracts_path.rb')
-rw-r--r-- | lib/extracts_path.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb index 009c5fcada9..1b7c698d0a8 100644 --- a/lib/extracts_path.rb +++ b/lib/extracts_path.rb @@ -98,9 +98,7 @@ module ExtractsPath @ref, @path = extract_ref(@id) - # It is used "@project.repository.commits(@ref, @path, 1, 0)", - # because "@project.repository.commit(@ref)" returns wrong commit when @ref is tag name. - @commit = @project.repository.commits(@ref, @path, 1, 0).first + @commit = @project.repository.commit(@ref) @tree = Tree.new(@project.repository, @commit.id, @ref, @path) |