Skip to content

Commit

Permalink
Fix: swap equals with startsWith
Browse files Browse the repository at this point in the history
  • Loading branch information
dabico committed Dec 28, 2023
1 parent c47957f commit b1e517d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public GitException convert(@NonNull String source) {
.orElse("");
if (fatal.endsWith(NOT_FOUND))
return new RepositoryNotFoundException(fatal);
if (fatal.endsWith(FORBIDDEN) && remote.equals(DISABLED))
if (fatal.endsWith(FORBIDDEN) && remote.startsWith(DISABLED))
return new RepositoryDisabledException(fatal);
if (fatal.endsWith(FORBIDDEN) && remote.contains(LOCKED))
return new RepositoryLockedException(fatal);
Expand Down

0 comments on commit b1e517d

Please sign in to comment.