You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by vb...@apache.org on 2009/03/04 09:53:42 UTC

svn commit: r749943 - /buildr/trunk/doc/scripts/buildr-git.rb

Author: vborja
Date: Wed Mar  4 08:53:41 2009
New Revision: 749943

URL: http://svn.apache.org/viewvc?rev=749943&view=rev
Log:
Using update-ref to advance townhall/trunk before pushing to github

Modified:
    buildr/trunk/doc/scripts/buildr-git.rb

Modified: buildr/trunk/doc/scripts/buildr-git.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/doc/scripts/buildr-git.rb?rev=749943&r1=749942&r2=749943&view=diff
==============================================================================
--- buildr/trunk/doc/scripts/buildr-git.rb (original)
+++ buildr/trunk/doc/scripts/buildr-git.rb Wed Mar  4 08:53:41 2009
@@ -332,11 +332,17 @@
         end
         git(*cmd)
       end
+      
+      # update townhall remote ref
+      git('update-ref', 
+          "refs/remotes/#{opt.apache_git}/#{opt.git_branch}",
+          "refs/remotes/#{opt.apache_svn}/#{opt.svn_branch}")
 
       # forward the remote townhall/master to apache/trunk
-      git('push', opt.apache_git,
-          "#{opt.git_branch}:#{opt.git_branch}")
-      
+      git('push', opt.apache_git, 
+          "refs/remotes/#{opt.apache_git}/#{opt.git_branch}:#{opt.git_branch}")
+
+    ensure
       # get back to the original branch
       git('checkout', opt.current)
     end