Increase askpass timeout for git operations (#42946)

Closes #29903

Release Notes:

- Increased timeout from 17->300 & improved the error message.

---------

Signed-off-by: 11happy <soni5happy@gmail.com>
Signed-off-by: 11happy <bhuminjaysoni@gmail.com>
This commit is contained in:
Bhuminjay Soni
2025-12-02 12:18:13 +01:00
committed by GitHub
parent e5105ccdbe
commit a74aac88c9
3 changed files with 6 additions and 0 deletions
+3
View File
@@ -232,12 +232,14 @@ impl From<Oid> for usize {
#[derive(Copy, Clone, Debug)]
pub enum RunHook {
PreCommit,
PrePush,
}
impl RunHook {
pub fn as_str(&self) -> &str {
match self {
Self::PreCommit => "pre-commit",
Self::PrePush => "pre-push",
}
}
@@ -248,6 +250,7 @@ impl RunHook {
pub fn from_proto(value: i32) -> Option<Self> {
match value {
0 => Some(Self::PreCommit),
1 => Some(Self::PrePush),
_ => None,
}
}