1
0
mirror of https://codeberg.org/gitnex/GitNex synced 2024-12-23 00:48:57 +01:00

Fix crash on incorrect case (#1173)

Closes #1172

Co-authored-by: qwerty287 <ndev@web.de>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1173
Reviewed-by: M M Arif <mmarif@noreply.codeberg.org>
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
This commit is contained in:
qwerty287 2022-07-29 14:54:30 +02:00 committed by M M Arif
parent f15477b03a
commit a95d2718b4

View File

@ -161,7 +161,7 @@ public class RepositoryContext implements Serializable {
public void setRepository(org.gitnex.tea4j.v2.models.Repository repository) {
this.repository = repository;
if(!repository.getFullName().equals(getFullName())) {
if(!repository.getFullName().equalsIgnoreCase(getFullName())) {
throw new IllegalArgumentException("repo does not match owner and name");
}
}