mirror of
https://github.com/github/rails.git
synced 2026-01-31 01:08:19 -05:00
Fail gracefully from svn checks (closes #2700) [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2907 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -93,8 +93,8 @@ class RailsEnvironment
|
||||
end
|
||||
|
||||
def use_svn?
|
||||
`svn --version`
|
||||
$?.success?
|
||||
`svn --version` rescue nil
|
||||
!$?.nil? && $?.success?
|
||||
end
|
||||
|
||||
def use_externals?
|
||||
|
||||
@@ -30,8 +30,8 @@ end
|
||||
desc "Lock this application to the Edge Rails (by exporting from Subversion). Defaults to svn HEAD; do 'rake freeze_edge REVISION=1234' to lock to a specific revision."
|
||||
task :freeze_edge do
|
||||
$verbose = false
|
||||
`svn --version`
|
||||
unless $?.success?
|
||||
`svn --version` rescue nil
|
||||
unless !$?.nil? && $?.success?
|
||||
$stderr.puts "ERROR: Must have subversion (svn) available in the PATH to lock this application to Edge Rails"
|
||||
exit 1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user