diff --git a/lib/capistrano/recipes/deploy/scm/git.rb b/lib/capistrano/recipes/deploy/scm/git.rb index 987f1122..2fcb0a22 100644 --- a/lib/capistrano/recipes/deploy/scm/git.rb +++ b/lib/capistrano/recipes/deploy/scm/git.rb @@ -202,8 +202,7 @@ module Capistrano # Returns a log of changes between the two revisions (inclusive). def log(from, to=nil) - from << "..#{to}" if to - scm :log, from + scm :log, "#{from}..#{to}" end # Getting the actual commit id, in case we were passed a tag diff --git a/test/deploy/scm/git_test.rb b/test/deploy/scm/git_test.rb index 55d96b52..68ce34b2 100644 --- a/test/deploy/scm/git_test.rb +++ b/test/deploy/scm/git_test.rb @@ -45,7 +45,7 @@ class DeploySCMGitTest < Test::Unit::TestCase end def test_log - assert_equal "git log master", @source.log('master') + assert_equal "git log master..", @source.log('master') assert_equal "git log master..branch", @source.log('master', 'branch') end