Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

#410: azure site create --github fails when attempting to recreate site

  • Loading branch information...
commit bb3034f540edf2ee85be4f6052498de79e5d59f3 1 parent 729c9c7
@andrerod andrerod authored
View
18 lib/cli/linkedrevisioncontrol.js
@@ -310,7 +310,9 @@ GithubClient.prototype.createOrUpdateHook = function GithubClient_prototype_crea
existingHook.user = username;
existingHook.repo = repository;
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 {
@@ -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.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() {
@@ -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() {
@@ -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() {
@@ -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() {
@@ -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");
remoteUris = []; return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$GithubClient_prototype__getRemoteUris__16() {
View
2  lib/cli/linkedrevisioncontrol_.js
@@ -310,6 +310,8 @@ GithubClient.prototype.createOrUpdateHook = function (username, repository, webs
existingHook.user = username;
existingHook.repo = repository;
existingHook = this.updateHook(existingHook, _);
+ existingHook.user = username;
+ existingHook.repo = repository;
this.testHook(existingHook, _);
} else {
this.log.info('Link already established');
Please sign in to comment.
Something went wrong with that request. Please try again.