]> source.dussan.org Git - jquery-ui.git/commitdiff
Release: Allow remote repositories other than "git@github.com", eg. filesystem
authorRafael Xavier de Souza <rxaviers@gmail.com>
Wed, 5 Jun 2013 13:37:01 +0000 (10:37 -0300)
committerScott González <scott.gonzalez@gmail.com>
Tue, 26 Nov 2013 16:18:06 +0000 (11:18 -0500)
(cherry picked from commit a52421b25f5d8f1a61049014589555690f44e7b0)

build/release/release.js

index de894e9dbf248519c5271572f0842425584ae930..dfacb537fbbe72143d3732ed4856b853a6f85bbb 100644 (file)
@@ -4,7 +4,8 @@
 // Usage:
 // stable release: node release.js
 // pre-release: node release.js --pre-release {version}
-// test run: node release.js --remote=user/repo
+// test run: node release.js --remote={repo}
+// - repo: "/tmp/repo" (filesystem), "user/repo" (github), "http://mydomain/repo.git" (another domain)
 
 "use strict";
 
@@ -515,7 +516,11 @@ function writePackage( pkg ) {
 
 function bootstrap( fn ) {
        getRemote(function( remote ) {
-               repo = "git@github.com:" + remote + ".git";
+               if ( (/:/).test( remote ) || fs.existsSync( remote ) ) {
+                       repo = remote;
+               } else {
+                       repo = "git@github.com:" + remote + ".git";
+               }
                _bootstrap( fn );
        });
 }