Skip to content

Commit 16a186a

Browse files
committed
fix(git): handle current key literal prefix
1 parent 80960bd commit 16a186a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

asyncgit/src/sync/sign.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,13 @@ impl SignBuilder {
165165
SignBuilderError::SSHSigningKey(
166166
err.to_string(),
167167
)
168+
})
169+
.map(|value| {
170+
if value.starts_with("key::") {
171+
value.replacen("key::", "", 1)
172+
} else {
173+
value
174+
}
168175
})?;
169176

170177
let mut pub_key_temp_file = None;

0 commit comments

Comments
 (0)