diff options
| author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-08-22 18:13:06 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-22 18:13:06 +0530 |
| commit | 70aa41ae61fdfae1cbf2093cd5848c5808b08013 (patch) | |
| tree | fe453fd36ab6716365cf0e4fd0627dfbcefe62f4 /app/src/main/java/com/zeapo/pwdstore/utils | |
| parent | 70f7d3b199a1a11084c23c2a1545b7bacce70258 (diff) | |
| download | HardenedPass-70aa41ae61fdfae1cbf2093cd5848c5808b08013.tar.gz HardenedPass-70aa41ae61fdfae1cbf2093cd5848c5808b08013.zip | |
Don't use git config for setting author and email (#1043)
Fixes #1038
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/java/com/zeapo/pwdstore/utils')
| -rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.kt | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.kt b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.kt index 45453d4f..f0b891fc 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.kt +++ b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.kt @@ -244,47 +244,5 @@ open class PasswordRepository protected constructor() { passwordList.sortWith(sortOrder.comparator) return passwordList } - - /** - * Sets the git user name - * - * @param username username - */ - @JvmStatic - fun setGitAuthorName(username: String) { - setStringConfig("user", null, "name", username) - } - - /** - * Sets the git user email - * - * @param email email - */ - @JvmStatic - fun setGitAuthorEmail(email: String) { - setStringConfig("user", null, "email", email) - } - - /** - * Sets a git config value - * - * @param section config section name - * @param subsection config subsection name - * @param name config name - * @param value the value to be set - */ - @JvmStatic - @Suppress("SameParameterValue") - private fun setStringConfig(section: String, subsection: String?, name: String, value: String) { - if (isInitialized) { - val config = repository!!.config - config.setString(section, subsection, name, value) - try { - config.save() - } catch (e: Exception) { - e.printStackTrace() - } - } - } } } |
