diff options
author | Rafael Xavier de Souza <rxaviers@gmail.com> | 2013-06-05 10:37:01 -0300 |
---|---|---|
committer | Rafael Xavier de Souza <rxaviers@gmail.com> | 2013-06-26 12:40:58 -0300 |
commit | a52421b25f5d8f1a61049014589555690f44e7b0 (patch) | |
tree | 6a1d0ff0a8d69df637f1676dcd906325fbc0744f /build | |
parent | b8a875cabf58d3c81dfba4b4f0db202dedbecd5d (diff) | |
download | jquery-ui-a52421b25f5d8f1a61049014589555690f44e7b0.tar.gz jquery-ui-a52421b25f5d8f1a61049014589555690f44e7b0.zip |
Release: Allow remote repositories other than "git@github.com", eg. filesystem
Diffstat (limited to 'build')
-rw-r--r-- | build/release/release.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/build/release/release.js b/build/release/release.js index df281af2d..df94b1c08 100644 --- a/build/release/release.js +++ b/build/release/release.js @@ -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 ); }); } |