mirror of https://codeberg.org/gitnex/GitNex.git
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:
parent
f15477b03a
commit
a95d2718b4
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue