diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-22 04:44:57 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-22 04:44:57 -0400 |
commit | 932f717adb1cb1738415fcddaf5eb3c0e4a60fc2 (patch) | |
tree | 60a13dd51c6016901f0f262b00635efa25bf1a93 /models/action.go | |
parent | f219ddcf4ef13b9d5de129da4eb2b56dbc899d61 (diff) | |
download | gitea-932f717adb1cb1738415fcddaf5eb3c0e4a60fc2.tar.gz gitea-932f717adb1cb1738415fcddaf5eb3c0e4a60fc2.zip |
Fixing bug
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/models/action.go b/models/action.go index 107d4b1057..89751b9779 100644 --- a/models/action.go +++ b/models/action.go @@ -79,6 +79,16 @@ func CommitRepoAction(userId int64, userName string, }) return err } + + // Update repository last update time. + repo, err := GetRepositoryByName(userId, repoName) + if err != nil { + return err + } + repo.Updated = time.Now() + if err = UpdateRepository(repo); err != nil { + return err + } return nil } |