diff --git a/app/src/main/java/app/passwordstore/ui/git/config/GitServerConfigActivity.kt b/app/src/main/java/app/passwordstore/ui/git/config/GitServerConfigActivity.kt index 85eae71d0..5792645a0 100644 --- a/app/src/main/java/app/passwordstore/ui/git/config/GitServerConfigActivity.kt +++ b/app/src/main/java/app/passwordstore/ui/git/config/GitServerConfigActivity.kt @@ -83,7 +83,6 @@ class GitServerConfigActivity : BaseGitActivity() { setAuthModes(it.startsWith("http://") || it.startsWith("https://")) } ) - binding.serverBranch.setText(gitSettings.branch) binding.serverUrl.doOnTextChanged { text, _, _, _ -> if (text.isNullOrEmpty()) return@doOnTextChanged diff --git a/app/src/main/java/app/passwordstore/util/git/operation/CloneOperation.kt b/app/src/main/java/app/passwordstore/util/git/operation/CloneOperation.kt index f03487711..67a64cd51 100644 --- a/app/src/main/java/app/passwordstore/util/git/operation/CloneOperation.kt +++ b/app/src/main/java/app/passwordstore/util/git/operation/CloneOperation.kt @@ -19,6 +19,6 @@ class CloneOperation(callingActivity: AppCompatActivity, uri: String) : override val commands: Array> = arrayOf( - Git.cloneRepository().setBranch(remoteBranch).setDirectory(repository.workTree).setURI(uri), + Git.cloneRepository().setDirectory(repository.workTree).setURI(uri), ) } diff --git a/app/src/main/res/layout/activity_git_clone.xml b/app/src/main/res/layout/activity_git_clone.xml index 169989211..4f16fc1d0 100644 --- a/app/src/main/res/layout/activity_git_clone.xml +++ b/app/src/main/res/layout/activity_git_clone.xml @@ -10,7 +10,6 @@ android:layout_height="match_parent" android:background="?android:attr/windowBackground" android:padding="@dimen/activity_horizontal_margin" - tools:background="@color/white" tools:context="app.passwordstore.ui.git.config.GitServerConfigActivity"> - - - - - - + android:nextFocusForward="@id/auth_mode_group" /> @@ -65,7 +45,7 @@ android:layout_marginBottom="16dp" android:text="@string/connection_mode" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@id/label_server_branch" /> + app:layout_constraintTop_toBottomOf="@id/label_server_url" />