From a52421b25f5d8f1a61049014589555690f44e7b0 Mon Sep 17 00:00:00 2001 From: Rafael Xavier de Souza Date: Wed, 5 Jun 2013 10:37:01 -0300 Subject: [PATCH] Release: Allow remote repositories other than "git@github.com", eg. filesystem --- build/release/release.js | 9 +++++++-- 1 file 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 ); }); } -- 2.39.5