mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
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
This commit is contained in:
parent
a7a256956d
commit
5f2e2788a1
2 changed files with 6 additions and 0 deletions
|
@ -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 @@ 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
|
||||
|
|
Loading…
Reference in a new issue