mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Suppress log by filtering remote refs
This commit is contained in:
parent
5159a6a665
commit
e9fd89c031
4 changed files with 3 additions and 3 deletions
|
@ -7,6 +7,7 @@ Reverse Chronological Order:
|
|||
https://github.com/capistrano/capistrano/compare/v3.7.0.beta1...HEAD
|
||||
|
||||
* Your contribution here!
|
||||
* Suppress log messages of `git ls-remote` by filtering remote refs (@aeroastro)
|
||||
|
||||
## `3.7.0.beta1` (2016-11-02)
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ Feature: Deploy
|
|||
Scenario: Creating the repo
|
||||
When I run cap "git:check"
|
||||
Then the task is successful
|
||||
And references in the remote repo are listed
|
||||
And git wrapper permissions are 0700
|
||||
|
||||
Scenario: Creating the directory structure
|
||||
|
|
|
@ -32,7 +32,7 @@ class Capistrano::SCM::Git < Capistrano::SCM::Plugin
|
|||
end
|
||||
|
||||
def check_repo_is_reachable
|
||||
git :'ls-remote --heads', repo_url
|
||||
git :'ls-remote', repo_url, "HEAD"
|
||||
end
|
||||
|
||||
def clone_repo
|
||||
|
|
|
@ -46,7 +46,7 @@ module Capistrano
|
|||
describe "#check_repo_is_reachable" do
|
||||
it "should test the repo url" do
|
||||
env.set(:repo_url, "url")
|
||||
backend.expects(:execute).with(:git, :'ls-remote --heads', "url").returns(true)
|
||||
backend.expects(:execute).with(:git, :'ls-remote', "url", "HEAD").returns(true)
|
||||
|
||||
subject.check_repo_is_reachable
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue