summaryrefslogtreecommitdiffstats
path: root/modules/git/tree_entry.go
diff options
context:
space:
mode:
authorlunnyxiao <xiaolunwen@gmail.com>2014-09-22 14:23:36 +0800
committerlunnyxiao <xiaolunwen@gmail.com>2014-09-22 14:23:36 +0800
commit7df60af60ed6d9606c5894c6512522dc91d0c247 (patch)
tree7d86223b4204d042b96cc31d71a3435860377581 /modules/git/tree_entry.go
parent79ec08141af6f156597064f5fcafc4d0af2e1a05 (diff)
downloadgitea-7df60af60ed6d9606c5894c6512522dc91d0c247.tar.gz
gitea-7df60af60ed6d9606c5894c6512522dc91d0c247.zip
submodule support and closed #478
Diffstat (limited to 'modules/git/tree_entry.go')
-rw-r--r--modules/git/tree_entry.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/tree_entry.go b/modules/git/tree_entry.go
index f65f332666..e403e93e33 100644
--- a/modules/git/tree_entry.go
+++ b/modules/git/tree_entry.go
@@ -84,7 +84,7 @@ type Entries []*TreeEntry
var sorter = []func(t1, t2 *TreeEntry) bool{
func(t1, t2 *TreeEntry) bool {
- return t1.IsDir() && !t2.IsDir()
+ return (t1.IsDir() || t1.IsSubModule()) && !t2.IsDir() && !t2.IsSubModule()
},
func(t1, t2 *TreeEntry) bool {
return t1.name < t2.name