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

Amended the git check command, "ls-remote", to use "-h"

this limits the list to refs/heads, thus reducing output noise
This commit is contained in:
chris 2014-03-26 16:54:39 -07:00
parent 659211bfda
commit c1be5490ce
3 changed files with 3 additions and 2 deletions

View file

@ -7,6 +7,7 @@ Reverse Chronological Order:
* Minor changes:
* Added `keys` method to Server properties to allow introspection of automatically added
properties.
* Amended the git check command, "ls-remote", to use "-h", limiting the list to refs/heads
## `3.1.0`

View file

@ -18,7 +18,7 @@ class Capistrano::Git < Capistrano::SCM
end
def check
test! :git, :'ls-remote', repo_url
test! :git, :'ls-remote -h', 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(:test).with(:git, :'ls-remote', :url).returns(true)
context.expects(:test).with(:git, :'ls-remote -h', :url).returns(true)
subject.check
end