diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-08 03:18:20 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-08 03:18:20 +0000 |
commit | f319409abc950044d6837aead5e5ded9f99423de (patch) | |
tree | 70fb55c5282ebdfe059ddc3e733492f08bc8dbf8 | |
parent | 40a37b194d283c72949bb1fd4eb53b720e688365 (diff) | |
download | redmine-f319409abc950044d6837aead5e5ded9f99423de.tar.gz redmine-f319409abc950044d6837aead5e5ded9f99423de.zip |
scm: git: remove unused "--all" option of "git log" in lib revisions method
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8813 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | lib/redmine/scm/adapters/git_adapter.rb | 1 | ||||
-rw-r--r-- | test/unit/lib/redmine/scm/adapters/git_adapter_test.rb | 11 |
2 files changed, 0 insertions, 12 deletions
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb index fcb73a363..b6ab394c3 100644 --- a/lib/redmine/scm/adapters/git_adapter.rb +++ b/lib/redmine/scm/adapters/git_adapter.rb @@ -191,7 +191,6 @@ module Redmine revs = Revisions.new cmd_args = %w|log --no-color --encoding=UTF-8 --raw --date=iso --pretty=fuller --parents| cmd_args << "--reverse" if options[:reverse] - cmd_args << "--all" if options[:all] cmd_args << "-n" << "#{options[:limit].to_i}" if options[:limit] from_to = "" from_to << "#{identifier_from}.." if identifier_from diff --git a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb index 7889f163a..4f7988ea3 100644 --- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @@ -87,17 +87,6 @@ begin ], @adapter.tags end - def test_getting_all_revisions - assert_equal 21, @adapter.revisions('',nil,nil,:all => true).length - end - - def test_revisions_reverse - revs1 = @adapter.revisions('',nil,nil,{:all => true, :reverse => true }) - assert_equal 21, revs1.length - assert_equal '7234cb2750b63f47bff735edc50a1c0a433c2518', revs1[0].identifier - assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', revs1[20].identifier - end - def test_revisions_master_all revs1 = [] @adapter.revisions('', nil, "master",{}) do |rev| |