We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8637a2 commit 714a29aCopy full SHA for 714a29a
asyncgit/src/sync/sign.rs
@@ -621,4 +621,24 @@ mod tests {
621
622
Ok(())
623
}
624
+
625
+ #[test]
626
+ fn test_external_ssh_binary() -> Result<()> {
627
+ let (_tmp_dir, repo) = repo_init_empty()?;
628
629
+ {
630
+ let mut config = repo.config()?;
631
+ config.set_str("gpg.program", "ssh")?;
632
+ config.set_str("user.signingKey", "/tmp/key.pub")?;
633
+ config.set_str("gpg.ssh.program", "/bin/cat")?;
634
+ }
635
636
+ let sign =
637
+ SignBuilder::from_gitconfig(&repo, &repo.config()?)?;
638
639
+ assert_eq!("/bin/cat", sign.program());
640
+ assert_eq!("/tmp/key.pub", sign.signing_key());
641
642
+ Ok(())
643
644
0 commit comments