Update code.gitea.io/git (#3137)

This commit is contained in:
Ethan Koenig authored and Lunny Xiao committed 2017-12-11 10:23:34 +08:00
1 parent 682ac11958
commit 58a7de2aea
31 files changed
+3274 -405

No files matched your search

+1 -1
View File
@@ -283,5 +283,5 @@ func GetLatestCommitTime(repoPath string) (time.Time, error) {
return time.Time{}, err
}
commitTime := strings.TrimSpace(stdout)
return time.Parse("Mon Jan 02 15:04:05 2006 -0700", commitTime)
return time.Parse(GitTimeLayout, commitTime)
}