From 8ec3320df793b58d20f632038b0b2a37f37103e3 Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Wed, 26 Aug 2020 16:21:27 +0200 Subject: Get rid of explicit Git server protocol (#1054) * Double check Git server protocol Ensure that the Git server protocol is not at odds with the URL scheme. Also move the Protocol switches below the URL to make it clear that the URL should be entered first. * Remove protocol selection from server config The protocol is now extracted from the URL, and the authentication mode selection is validated by GitSettings Signed-off-by: Harsh Shandilya * Don't use pref values for auth modes Signed-off-by: Harsh Shandilya * Apply suggestions from code review Remove now unused protocol mismatch result type Co-authored-by: Fabian Henneke * Simplify migration logic and fix tests Signed-off-by: Harsh Shandilya * Revert "Simplify migration logic and fix tests" This reverts commit 1c4c4ba5fbc212843cb6b74dd29ac858eaea7582. * Detect URLs with null scheme as ssh * Add changelog entry Signed-off-by: Harsh Shandilya Co-authored-by: Harsh Shandilya Co-authored-by: Harsh Shandilya --- app/src/androidTest/java/com/zeapo/pwdstore/MigrationsTest.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'app/src/androidTest') diff --git a/app/src/androidTest/java/com/zeapo/pwdstore/MigrationsTest.kt b/app/src/androidTest/java/com/zeapo/pwdstore/MigrationsTest.kt index 531ceebf..c66bb215 100644 --- a/app/src/androidTest/java/com/zeapo/pwdstore/MigrationsTest.kt +++ b/app/src/androidTest/java/com/zeapo/pwdstore/MigrationsTest.kt @@ -24,6 +24,7 @@ class MigrationsTest { assertNull(getString(PreferenceKeys.GIT_REMOTE_USERNAME)) assertNull(getString(PreferenceKeys.GIT_REMOTE_SERVER)) assertNull(getString(PreferenceKeys.GIT_REMOTE_LOCATION)) + assertNull(getString(PreferenceKeys.GIT_REMOTE_PROTOCOL)) } @Test -- cgit v1.2.3