Skip to content
Permalink
Browse files

Release: Allow remote repositories other than "git@github.com", eg. f…

…ilesystem
  • Loading branch information
rxaviers committed Jun 5, 2013
1 parent b8a875c commit a52421b25f5d8f1a61049014589555690f44e7b0
Showing with 7 additions and 2 deletions.
  1. +7 −2 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 );
});
}

0 comments on commit a52421b

Please sign in to comment.
You can’t perform that action at this time.