1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Merge pull request #1215 from dimitrid/master

fix flag for ls-remote
This commit is contained in:
Lee Hambley 2014-12-05 18:26:12 +01:00
commit 26ea53bc4c
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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