You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- create-branch popup aligned with rename-branch [[@bruceCoelho](https://github.com/bruceCoelho)] ([#679](https://github.com/extrawurst/gitui/issues/679))
27
27
- smart focus change after staging all files ([#706](https://github.com/extrawurst/gitui/issues/706))
28
+
- do not allow to commit when `gpgsign` enabled ([#740](https://github.com/extrawurst/gitui/issues/740))
28
29
29
30
## Fixed
30
31
- selected-tab color broken in light theme [[@Cottser](https://github.com/Cottser)] ([#719](https://github.com/extrawurst/gitui/issues/719))
Copy file name to clipboardexpand all lines: src/components/commit.rs
+16-2
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ use super::{
6
6
usecrate::{
7
7
keys::SharedKeyConfig,
8
8
queue::{InternalEvent,NeedsUpdate,Queue},
9
-
strings,
9
+
strings, try_or_popup,
10
10
ui::style::SharedTheme,
11
11
};
12
12
use anyhow::Result;
@@ -106,7 +106,11 @@ impl Component for CommitComponent {
106
106
107
107
ifletEvent::Key(e) = ev {
108
108
if e == self.key_config.enter && self.can_commit(){
109
-
self.commit()?;
109
+
try_or_popup!(
110
+
self,
111
+
"commit error:",
112
+
self.commit()
113
+
);
110
114
}elseif e == self.key_config.commit_amend
111
115
&& self.can_amend()
112
116
{
@@ -293,6 +297,16 @@ impl CommitComponent {
293
297
}
294
298
295
299
fncommit(&mutself) -> Result<()>{
300
+
let gpgsign = get_config_string(CWD,"commit.gpgsign")
301
+
.ok()
302
+
.flatten()
303
+
.and_then(|path| path.parse::<bool>().ok())
304
+
.unwrap_or_default();
305
+
306
+
if gpgsign {
307
+
anyhow::bail!("config commit.gpgsign=true detected.\ngpg signing not supported.\ndeactivate in your repo/gitconfig to be able to commit without signing.");
0 commit comments