From a95d2718b481baca9b18cd343be4de15de26c98d Mon Sep 17 00:00:00 2001 From: qwerty287 Date: Fri, 29 Jul 2022 14:54:30 +0200 Subject: [PATCH] Fix crash on incorrect case (#1173) Closes #1172 Co-authored-by: qwerty287 Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1173 Reviewed-by: M M Arif Co-authored-by: qwerty287 Co-committed-by: qwerty287 --- .../org/mian/gitnex/helpers/contexts/RepositoryContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/mian/gitnex/helpers/contexts/RepositoryContext.java b/app/src/main/java/org/mian/gitnex/helpers/contexts/RepositoryContext.java index 4ef3b734..6a769bee 100644 --- a/app/src/main/java/org/mian/gitnex/helpers/contexts/RepositoryContext.java +++ b/app/src/main/java/org/mian/gitnex/helpers/contexts/RepositoryContext.java @@ -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"); } }