Skip to content

Commit

Permalink
chore: Revert "test: Git integration tests (#38237)" (#38333)
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhi-nair authored Dec 23, 2024
1 parent 5855115 commit bc38ee7
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 1,040 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ default String getBaseId() {

String getName();

void setName(String artifactName);

String getWorkspaceId();

Boolean getExportWithConfiguration();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2187,17 +2187,13 @@ public Mono<? extends Artifact> deleteBranch(String baseArtifactId, String branc
.onErrorResume(throwable -> {
log.error("Delete branch failed {}", throwable.getMessage());
if (throwable instanceof CannotDeleteCurrentBranchException) {
return releaseFileLock(baseArtifactId)
.then(Mono.error(new AppsmithException(
AppsmithError.GIT_ACTION_FAILED,
"delete branch",
"Cannot delete current checked out branch")));
return Mono.error(new AppsmithException(
AppsmithError.GIT_ACTION_FAILED,
"delete branch",
"Cannot delete current checked out branch"));
}
return releaseFileLock(baseArtifactId)
.then(Mono.error(new AppsmithException(
AppsmithError.GIT_ACTION_FAILED,
"delete branch",
throwable.getMessage())));
return Mono.error(new AppsmithException(
AppsmithError.GIT_ACTION_FAILED, "delete branch", throwable.getMessage()));
})
.flatMap(isBranchDeleted ->
releaseFileLock(baseArtifactId).map(status -> isBranchDeleted))
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit bc38ee7

Please sign in to comment.