summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-02 23:17:21 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-02 23:17:21 -0400
commit32c5fa514c92f9b29e41f86e765d25890e6d9bb8 (patch)
tree8f7803aa8f40c3579a29a69e12b7aad4803dfc81 /models
parenteaa7d71fc7967161dfd79987ed94f01bc8a7b88a (diff)
downloadgitea-32c5fa514c92f9b29e41f86e765d25890e6d9bb8.tar.gz
gitea-32c5fa514c92f9b29e41f86e765d25890e6d9bb8.zip
Fix #230
Diffstat (limited to 'models')
-rw-r--r--models/repo.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go
index d13c349f11..5d28174b01 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -12,6 +12,7 @@ import (
"os/exec"
"path"
"path/filepath"
+ "sort"
"strings"
"time"
"unicode/utf8"
@@ -75,6 +76,8 @@ func LoadRepoConfig() {
LanguageIgns = typeFiles[0]
Licenses = typeFiles[1]
+ sort.Strings(LanguageIgns)
+ sort.Strings(Licenses)
}
func NewRepoContext() {