diff options
author | Hendrik Maus <hendrikmaus@users.noreply.github.com> | 2024-03-24 21:08:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-24 13:08:28 -0700 |
commit | 5b3e2c9ae3913855f5dbe463c5ae1c04430e7532 (patch) | |
tree | 86e32107ac4d44b8f7269565d66a07f8afc7f9fd /src | |
parent | 5131aba138e300ba8d7f3836d67507801d1902d8 (diff) |
Support git commit signing using OpenPGP (#1544)
* Support git commit signing using OpenPGP
* workaround for amending signed commits
* workaround for rewording signed commits
* support signing initial commit
* return both signature and signature_field value from sign
---------
Co-authored-by: Utkarsh Gupta <utkarshgupta137@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/popups/commit.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/popups/commit.rs b/src/popups/commit.rs index 36cef4e3..9bd48069 100644 --- a/src/popups/commit.rs +++ b/src/popups/commit.rs @@ -205,17 +205,6 @@ impl CommitPopup { } fn commit(&mut self) -> Result<()> { - let gpgsign = - get_config_string(&self.repo.borrow(), "commit.gpgsign") - .ok() - .flatten() - .and_then(|path| path.parse::<bool>().ok()) - .unwrap_or_default(); - - if gpgsign { - anyhow::bail!("config commit.gpgsign=true detected.\ngpg signing not supported.\ndeactivate in your repo/gitconfig to be able to commit without signing."); - } - let msg = self.input.get_text().to_string(); if matches!( |