mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
commit
26ea53bc4c
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ class Capistrano::Git < Capistrano::SCM
|
|||
end
|
||||
|
||||
def check
|
||||
git :'ls-remote -h', repo_url
|
||||
git :'ls-remote --heads', repo_url
|
||||
end
|
||||
|
||||
def clone
|
||||
|
|
|
@ -31,7 +31,7 @@ module Capistrano
|
|||
describe "#check" do
|
||||
it "should test the repo url" do
|
||||
context.expects(:repo_url).returns(:url)
|
||||
context.expects(:execute).with(:git, :'ls-remote -h', :url).returns(true)
|
||||
context.expects(:execute).with(:git, :'ls-remote --heads', :url).returns(true)
|
||||
|
||||
subject.check
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue