Permalink
Browse files

Added 'git:committer' and 'git:anon' to switch how git is accessed

  • Loading branch information...
1 parent 466c2c5 commit 76aa72efa98bab5a5884bf20077a36cda762a456 @evanphx evanphx committed Nov 4, 2007
Showing with 13 additions and 0 deletions.
  1. +13 −0 rakelib/git.rake
View
@@ -21,6 +21,19 @@ def check_git_ver
end
namespace :git do
+
+ desc "Switch to the commiter URL"
+ task :committer do
+ sh "git config remote.origin.url git@git.rubini.us:code"
+ puts "\nYou're now accessing rubinius via the committer URL."
+ end
+
+ desc "Switch to the anonymous URL"
+ task :anon do
+ sh "git config remote.origin.url git://git.rubini.us/code"
+ puts "\nYou're now accessing rubinius via the anonymous URL."
+ end
+
desc "Show the current status of the checkout"
task :status do
system "git status"

0 comments on commit 76aa72e

Please sign in to comment.