diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-10 11:55:02 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-10 11:55:02 +0000 |
commit | eb789b147a60b33ff0e04b56e213c35b555b71ac (patch) | |
tree | 8c6bed5053fdd972a5b0765f82b64cde81c4a598 | |
parent | 4cedb0b628179ac6ecde472e6c22664a6e050599 (diff) | |
download | redmine-eb789b147a60b33ff0e04b56e213c35b555b71ac.tar.gz redmine-eb789b147a60b33ff0e04b56e213c35b555b71ac.zip |
scm: git: remove unused --since option (#4547, #4716, #7146, #6013)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8156 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 | 9 |
2 files changed, 0 insertions, 10 deletions
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb index c0f190ad7..fcb73a363 100644 --- a/lib/redmine/scm/adapters/git_adapter.rb +++ b/lib/redmine/scm/adapters/git_adapter.rb @@ -197,7 +197,6 @@ module Redmine from_to << "#{identifier_from}.." if identifier_from from_to << "#{identifier_to}" if identifier_to cmd_args << from_to if !from_to.empty? - cmd_args << "--since=#{options[:since].strftime("%Y-%m-%d %H:%M:%S")}" if options[:since] cmd_args << "--" << scm_iconv(@path_encoding, 'UTF-8', path) if path && !path.empty? scm_cmd *cmd_args do |io| 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 c5da9732a..7499ac9f9 100644 --- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @@ -102,15 +102,6 @@ begin assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', revs1[20].identifier end - def test_revisions_reverse_with_time - since2 = Time.gm(2010, 9, 30, 0, 0, 0) - revs2 = @adapter.revisions('', nil, nil, - {:all => true, :since => since2, :reverse => true}) - assert_equal 6, revs2.length - assert_equal '67e7792ce20ccae2e4bb73eed09bb397819c8834', revs2[0].identifier - assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', revs2[5].identifier - end - def test_revisions_master_all revs1 = [] @adapter.revisions('', nil, "master",{}) do |rev| |