Skip to content

Commit

Permalink
Release: Allow remote repositories other than "git@github.com", eg. f…
Browse files Browse the repository at this point in the history
…ilesystem
  • Loading branch information
rxaviers committed Jun 26, 2013
1 parent b8a875c commit a52421b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build/release/release.js
Expand Up @@ -4,7 +4,8 @@
// Usage: // Usage:
// stable release: node release.js // stable release: node release.js
// pre-release: node release.js --pre-release {version} // 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"; "use strict";


Expand Down Expand Up @@ -515,7 +516,11 @@ function writePackage( pkg ) {


function bootstrap( fn ) { function bootstrap( fn ) {
getRemote(function( remote ) { 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 ); _bootstrap( fn );
}); });
} }
Expand Down

0 comments on commit a52421b

Please sign in to comment.