Permalink
Browse files

auto-detect if we run from a git repository

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5307 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
1 parent 68162bf commit 2e7102cd3397655a4f1193b5910795e5861f200c @lrz lrz committed Mar 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 rakelib/packager.rake
View
@@ -1,4 +1,4 @@
-desc "build a nightly pkg installer, use SCM=git-svn if you are using a git-svn repo"
+desc "build a nightly pkg installer"
task :nightly do
build_destination = '/tmp/macruby-nightly'
directory build_destination
@@ -7,7 +7,7 @@ task :nightly do
puts "Cleaning the repo"
`rake clean`
puts "Updating the repo..."
- if ENV['SCM'] == 'git-svn'
+ if File.exist?('.git')
`git svn rebase`
else
`svn up`

0 comments on commit 2e7102c

Please sign in to comment.