gogits/gogs — pull request #444 by tstorch (2014-09-04 15:26:21+00:00)
Title: Code dedoublication in models/models.go

Just some code dedoublication in models/models.go

The diff is a littlebit strange. I just pull out the doubled code in a new function and made one minor structural change.