]> 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)
committerRafael Xavier de Souza <rxaviers@gmail.com>
Wed, 26 Jun 2013 15:40:58 +0000 (12:40 -0300)
build/release/release.js

index df281af2d4e043ee668ef494b0d18339fe9dc71e..df94b1c089e15be670b66c4fe6725098fcb59eaf 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 );
        });
 }