Skip to content

Commit

Permalink
increase default cache timeout to six hours
Browse files Browse the repository at this point in the history
  • Loading branch information
hickford committed May 2, 2024
1 parent c1767ed commit 9423940
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ func main() {
case "darwin":
storage = "osxkeychain"
default:
storage = "cache --timeout 7200"
// six hours
storage = "cache --timeout 21600"
}
commands = []*exec.Cmd{exec.Command(gitPath, "config", "--global", "--unset-all", "credential.helper"),
exec.Command(gitPath, "config", "--global", "--add", "credential.helper", storage),
Expand Down

0 comments on commit 9423940

Please sign in to comment.