lib/capistrano/git-submodule-strategy.rb in capistrano-git-submodule-strategy-0.1.4 vs lib/capistrano/git-submodule-strategy.rb in capistrano-git-submodule-strategy-0.1.5

- old
+ new

@@ -17,9 +17,11 @@ if context.capture(:git, :'ls-remote', repo_url).split("\n").select{ |i| i.include?("refs/heads/#{fetch(:branch)}") }.empty? context.error "Branch `#{fetch(:branch)}` not found in repo `#{repo_url}`" return false end + + true end def clone git :clone, '-b', fetch(:branch), '--recursive', repo_url, repo_path end