Browse Source

scm: git: add new one latin1 tag to test repository (#16881)

git-svn-id: http://svn.redmine.org/redmine/trunk@18040 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Toshi MARUYAMA 5 years ago
parent
commit
ae0939952e

+ 1
- 1
lib/redmine/scm/adapters/git_adapter.rb View File

@tags = [] @tags = []
cmd_args = %w|tag| cmd_args = %w|tag|
git_cmd(cmd_args) do |io| git_cmd(cmd_args) do |io|
@tags = io.readlines.sort!.map{|t| t.strip}
@tags = io.readlines.sort!.map{|t| scm_iconv('UTF-8', @path_encoding, t.strip)}
end end
@tags @tags
rescue ScmCommandAborted rescue ScmCommandAborted

BIN
test/fixtures/repositories/git_repository.tar.gz View File


+ 1
- 0
test/unit/lib/redmine/scm/adapters/git_adapter_test.rb View File

assert_equal [ assert_equal [
"tag00.lightweight", "tag00.lightweight",
"tag01.annotated", "tag01.annotated",
"tag02.lightweight.#{@char_1}.01"
], @adapter.tags ], @adapter.tags
end end



Loading…
Cancel
Save