mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Release: Allow remote repositories other than "git@github.com", eg. filesystem
This commit is contained in:
parent
b8a875cabf
commit
a52421b25f
@ -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 );
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user