fix: commit stucks when using SSH formatted GPG signing with a key contains non-empty passphrase

This commit is contained in:
leo 2024-07-09 17:56:23 +08:00
parent 386c92fa28
commit 9db050e8c2
No known key found for this signature in database
5 changed files with 19 additions and 19 deletions

View file

@ -50,12 +50,9 @@
</Grid>
<StackPanel Grid.Row="1" Margin="0,16" Orientation="Vertical">
<StackPanel Orientation="Horizontal" Margin="16,0">
<TextBlock Text="Enter passphrase for key: "/>
<Border Background="{DynamicResource Brush.Accent}" CornerRadius="4">
<TextBlock Text="{Binding KeyName}" Classes="monospace" Margin="4,0" Foreground="#FFDDDDDD"/>
</Border>
</StackPanel>
<Border Margin="16,0">
<TextBlock Text="{Binding Description}" TextWrapping="Wrap"/>
</Border>
<TextBox Margin="16"
MinWidth="300"

View file

@ -17,7 +17,7 @@ namespace SourceGit.Views
set => SetValue(ShowPasswordProperty, value);
}
public string KeyName
public string Description
{
get;
private set;
@ -35,9 +35,9 @@ namespace SourceGit.Views
InitializeComponent();
}
public Askpass(string keyname)
public Askpass(string description)
{
KeyName = keyname;
Description = description;
DataContext = this;
InitializeComponent();
}