mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Applying a fix for #169 from Shouichi Kamiya
This commit is contained in:
parent
fd0b5b7b5e
commit
7c8678d78e
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,3 +7,4 @@ pkg
|
|||
*.sh
|
||||
.DS_Store
|
||||
capistrano.gemspec
|
||||
.bundle/*
|
||||
|
|
|
@ -52,7 +52,7 @@ module Capistrano
|
|||
# executed (svn info), and will extract the revision from the response.
|
||||
def query_revision(revision)
|
||||
return revision if revision =~ /^\d+$/
|
||||
command = scm(:info, repository, authentication, "-r#{revision}")
|
||||
command = scm(:info, arguments, repository, authentication, "-r#{revision}")
|
||||
result = yield(command)
|
||||
yaml = YAML.load(result)
|
||||
raise "tried to run `#{command}' and got unexpected result #{result.inspect}" unless Hash === yaml
|
||||
|
|
Loading…
Add table
Reference in a new issue