Skip to content

Commit 9423940

Browse files
committed
increase default cache timeout to six hours
1 parent c1767ed commit 9423940

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@ func main() {
341341
case "darwin":
342342
storage = "osxkeychain"
343343
default:
344-
storage = "cache --timeout 7200"
344+
// six hours
345+
storage = "cache --timeout 21600"
345346
}
346347
commands = []*exec.Cmd{exec.Command(gitPath, "config", "--global", "--unset-all", "credential.helper"),
347348
exec.Command(gitPath, "config", "--global", "--add", "credential.helper", storage),

0 commit comments

Comments
 (0)