Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
#410: azure site create --github fails when attempting to recreate site
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Rodrigues committed Oct 29, 2012
1 parent 729c9c7 commit bb3034f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 10 additions & 8 deletions lib/cli/linkedrevisioncontrol.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ GithubClient.prototype.createOrUpdateHook = function GithubClient_prototype_crea
existingHook.user = username; existingHook.user = username;
existingHook.repo = repository; existingHook.repo = repository;
return __this.updateHook(existingHook, __cb(_, __frame, 28, 21, function ___(__0, __2) { existingHook = __2; return __this.updateHook(existingHook, __cb(_, __frame, 28, 21, function ___(__0, __2) { existingHook = __2;
return __this.testHook(existingHook, __cb(_, __frame, 29, 6, __then, true)); }, true)); } else { existingHook.user = username;
existingHook.repo = repository;
return __this.testHook(existingHook, __cb(_, __frame, 31, 6, __then, true)); }, true)); } else {


__this.log.info("Link already established"); __then(); } ; })(__then); } else { __this.log.info("Link already established"); __then(); } ; })(__then); } else {


Expand All @@ -329,14 +331,14 @@ GithubClient.prototype.createOrUpdateHook = function GithubClient_prototype_crea






return __this.createHook(newHook, __cb(_, __frame, 48, 14, function ___(__0, __3) { newHook = __3; return __this.createHook(newHook, __cb(_, __frame, 50, 14, function ___(__0, __3) { newHook = __3;
newHook.user = username; newHook.user = username;
newHook.repo = repository; newHook.repo = repository;
return __this.testHook(newHook, __cb(_, __frame, 51, 4, __then, true)); }, true)); } ; })(_); }, true)); });}; return __this.testHook(newHook, __cb(_, __frame, 53, 4, __then, true)); }, true)); } ; })(_); }, true)); });};






GithubClient.prototype.createHook = function GithubClient_prototype_createHook__12(hook, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_createHook__12", line: 339 }; return __func(_, this, arguments, GithubClient_prototype_createHook__12, 1, __frame, function __$GithubClient_prototype_createHook__12() { GithubClient.prototype.createHook = function GithubClient_prototype_createHook__12(hook, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_createHook__12", line: 341 }; return __func(_, this, arguments, GithubClient_prototype_createHook__12, 1, __frame, function __$GithubClient_prototype_createHook__12() {
progress = __this.cli.progress("Creating new hook"); return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype_createHook__12() { progress = __this.cli.progress("Creating new hook"); return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype_createHook__12() {




Expand All @@ -346,7 +348,7 @@ GithubClient.prototype.createHook = function GithubClient_prototype_createHook__






GithubClient.prototype.updateHook = function GithubClient_prototype_updateHook__13(hook, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_updateHook__13", line: 349 }; return __func(_, this, arguments, GithubClient_prototype_updateHook__13, 1, __frame, function __$GithubClient_prototype_updateHook__13() { GithubClient.prototype.updateHook = function GithubClient_prototype_updateHook__13(hook, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_updateHook__13", line: 351 }; return __func(_, this, arguments, GithubClient_prototype_updateHook__13, 1, __frame, function __$GithubClient_prototype_updateHook__13() {
progress = __this.cli.progress("Updating hook"); return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype_updateHook__13() { progress = __this.cli.progress("Updating hook"); return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype_updateHook__13() {




Expand All @@ -356,7 +358,7 @@ GithubClient.prototype.updateHook = function GithubClient_prototype_updateHook__






GithubClient.prototype.testHook = function GithubClient_prototype_testHook__14(hook, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_testHook__14", line: 359 }; return __func(_, this, arguments, GithubClient_prototype_testHook__14, 1, __frame, function __$GithubClient_prototype_testHook__14() { GithubClient.prototype.testHook = function GithubClient_prototype_testHook__14(hook, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_testHook__14", line: 361 }; return __func(_, this, arguments, GithubClient_prototype_testHook__14, 1, __frame, function __$GithubClient_prototype_testHook__14() {
progress = __this.cli.progress("Testing hook"); return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype_testHook__14() { progress = __this.cli.progress("Testing hook"); return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype_testHook__14() {




Expand All @@ -366,7 +368,7 @@ GithubClient.prototype.testHook = function GithubClient_prototype_testHook__14(h






GithubClient.prototype.getHooks = function GithubClient_prototype_getHooks__15(username, repository, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_getHooks__15", line: 369 }; return __func(_, this, arguments, GithubClient_prototype_getHooks__15, 2, __frame, function __$GithubClient_prototype_getHooks__15() { GithubClient.prototype.getHooks = function GithubClient_prototype_getHooks__15(username, repository, _) { var progress, __this = this; var __frame = { name: "GithubClient_prototype_getHooks__15", line: 371 }; return __func(_, this, arguments, GithubClient_prototype_getHooks__15, 2, __frame, function __$GithubClient_prototype_getHooks__15() {
progress = __this.cli.progress("Retrieving website hooks"); return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype_getHooks__15() { progress = __this.cli.progress("Retrieving website hooks"); return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype_getHooks__15() {




Expand All @@ -379,7 +381,7 @@ GithubClient.prototype.getHooks = function GithubClient_prototype_getHooks__15(u






GithubClient.prototype._getRemoteUris = function GithubClient_prototype__getRemoteUris__16(_) { var progress, remoteUris, remotes, __this = this; var __frame = { name: "GithubClient_prototype__getRemoteUris__16", line: 382 }; return __func(_, this, arguments, GithubClient_prototype__getRemoteUris__16, 0, __frame, function __$GithubClient_prototype__getRemoteUris__16() { GithubClient.prototype._getRemoteUris = function GithubClient_prototype__getRemoteUris__16(_) { var progress, remoteUris, remotes, __this = this; var __frame = { name: "GithubClient_prototype__getRemoteUris__16", line: 384 }; return __func(_, this, arguments, GithubClient_prototype__getRemoteUris__16, 0, __frame, function __$GithubClient_prototype__getRemoteUris__16() {
progress = __this.cli.progress("Retrieving local git repositories"); progress = __this.cli.progress("Retrieving local git repositories");
remoteUris = []; return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype__getRemoteUris__16() { remoteUris = []; return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype__getRemoteUris__16() {


Expand Down
2 changes: 2 additions & 0 deletions lib/cli/linkedrevisioncontrol_.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ GithubClient.prototype.createOrUpdateHook = function (username, repository, webs
existingHook.user = username; existingHook.user = username;
existingHook.repo = repository; existingHook.repo = repository;
existingHook = this.updateHook(existingHook, _); existingHook = this.updateHook(existingHook, _);
existingHook.user = username;
existingHook.repo = repository;
this.testHook(existingHook, _); this.testHook(existingHook, _);
} else { } else {
this.log.info('Link already established'); this.log.info('Link already established');
Expand Down

0 comments on commit bb3034f

Please sign in to comment.