with_lock_retry

Function with_lock_retry 

Source
pub fn with_lock_retry<F, R>(repo_path: &Path, operation: F) -> Result<R>
where F: Fn() -> Result<R, Error>,
Expand description

Execute a git2 operation with automatic stale lock cleanup and retry If the operation fails with a lock error, checks for stale locks and retries once