1
0
Fork 0
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:
Lee Hambley 2010-08-09 23:08:17 +02:00
parent fd0b5b7b5e
commit 7c8678d78e
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -7,3 +7,4 @@ pkg
*.sh
.DS_Store
capistrano.gemspec
.bundle/*

View file

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