Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

#407: azure site create --github does not work when run from director…

…y without repository
  • Loading branch information...
commit 729c9c7823d2542413251f61946af161e5a208f9 1 parent dfa3c1f
@andrerod andrerod authored
View
12 lib/cli/linkedrevisioncontrol.js
@@ -210,12 +210,12 @@ GithubClient.prototype.init = function GithubClient_prototype_init__8(context, _
return __this._getRemoteUris(__cb(_, __frame, 20, 21, function ___(__0, __2) { remoteUris = __2;
if ((remoteUris.length === 1)) {
- context.github.repository = LinkedRevisionControlClient._getRepositoryCloneUrl(repositories, remoteUris[0]); }
- else {
+ context.github.repository = LinkedRevisionControlClient._getRepositoryCloneUrl(repositories, remoteUris[0]); } else {
+ if ((remoteUris.length > 0)) {
- repositories = repositories.filter(function(repository) {
- return remoteUris.some(function(remoteUri) {
- return (remoteUri === repository.clone_url); }); }); } ; __then(); }, true)); } else { __then(); } ; })(__then); } ; })(function __$GithubClient_prototype_init__8() { return (function __$GithubClient_prototype_init__8(__then) {
+ repositories = repositories.filter(function(repository) {
+ return remoteUris.some(function(remoteUri) {
+ return (remoteUri === repository.clone_url); }); }); } ; } ; __then(); }, true)); } else { __then(); } ; })(__then); } ; })(function __$GithubClient_prototype_init__8() { return (function __$GithubClient_prototype_init__8(__then) {
@@ -223,7 +223,7 @@ GithubClient.prototype.init = function GithubClient_prototype_init__8(context, _
if (!context.github.repository) {
- __this.log.help("Choose a repository");
+ __this.log.help("Choose a repository (or hit ctrl-c to exit)");
return choose(__this.cli, repositories.map(function(repository) {
return repository.full_name; }), __cb(_, __frame, 37, 45, function ___(__0, __3) { context.github.repository = repositories[__3]; __then(); }, true)); } else { __then(); } ; })(_); }); }, true)); }, true)); }, true)); }, true)); });};
View
4 lib/cli/linkedrevisioncontrol_.js
@@ -211,7 +211,7 @@ GithubClient.prototype.init = function (context, _) {
if (remoteUris.length === 1) {
context.github.repository = LinkedRevisionControlClient._getRepositoryCloneUrl(repositories, remoteUris[0]);
- } else {
+ } else if (remoteUris.length > 0) {
// filter repositories to reduce prompt options
repositories = repositories.filter(function (repository) {
return remoteUris.some(function (remoteUri) {
@@ -223,7 +223,7 @@ GithubClient.prototype.init = function (context, _) {
if (!context.github.repository) {
// If there is no repository already determined, prompt the user to pick one
- this.log.help('Choose a repository');
+ this.log.help('Choose a repository (or hit ctrl-c to exit)');
context.github.repository = repositories[choose(this.cli, repositories.map(function (repository) {
return repository.full_name;
}), _)];
Please sign in to comment.
Something went wrong with that request. Please try again.