default_lock_timeout

Function default_lock_timeout 

Source
pub fn default_lock_timeout() -> Duration
Expand description

Default timeout for cache lock acquisition (120 seconds).

This timeout must be long enough to accommodate multiple sequential worktree operations that share the same lock (e.g., bare-worktree-{owner}_{repo}). On slow CI environments or when conflict resolution creates many worktrees, the lock may be held for extended periods. Set to 2× GIT_WORKTREE_TIMEOUT to allow for at least 2 sequential worktree creations.