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|