added default 1 hour default timeout for projects

This commit is contained in:
Brad Rydzewski 2014-09-06 11:10:00 -07:00
parent 73d2f5c1ca
commit 2448c34c6b

View file

@ -103,6 +103,7 @@ func (h *RepoHandler) PostRepo(w http.ResponseWriter, r *http.Request) error {
repo.PullRequest = true
repo.PostCommit = true
repo.UserID = user.ID
repo.Timeout = 3600 // default to 1 hour
// generate the rsa key
key, err := sshutil.GeneratePrivateKey()