From 5f2e2788a113a74d83821074ee0bd6a695559d79 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Thu, 31 Jan 2008 04:55:21 +0000 Subject: [PATCH] Add test case from #10515 to show that scm_command is honored by the git module. (The rest was implemented as a side-effect of [8755]. closes #10515) git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@8759 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- CHANGELOG | 2 ++ test/deploy/scm/git_test.rb | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 76ef9933..f65d673b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Added test case to show that the :scm_command is honored by the git SCM module [grempe] + * Fail gracefully when double-colons are used to delimit namespaces [richie] * Add support for :git_enable_submodules variable, to enable submodules with the git SCM [halorgium] diff --git a/test/deploy/scm/git_test.rb b/test/deploy/scm/git_test.rb index efda9b56..84c3f2b9 100644 --- a/test/deploy/scm/git_test.rb +++ b/test/deploy/scm/git_test.rb @@ -56,6 +56,10 @@ class DeploySCMGitTest < Test::Unit::TestCase # With branch @config[:branch] = "origin/foo" assert_equal "cd #{dest} && git fetch origin && git merge origin/foo", @source.sync('Not used', dest) + + # With :scm_command + @config[:scm_command] = "/opt/local/bin/git" + assert_equal "cd #{dest} && /opt/local/bin/git fetch origin && /opt/local/bin/git merge origin/foo", @source.sync('Not used', dest) end def test_shallow_clone