Permalink
Browse files

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
  • Loading branch information...
1 parent a7a2569 commit 5f2e2788a113a74d83821074ee0bd6a695559d79 @jamis jamis committed Jan 31, 2008
Showing with 6 additions and 0 deletions.
  1. +2 −0 CHANGELOG
  2. +4 −0 test/deploy/scm/git_test.rb
View
@@ -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]
@@ -56,6 +56,10 @@ def test_sync
# 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

0 comments on commit 5f2e278

Please sign in to comment.