submodule support and closed #478

This commit is contained in:
lunnyxiao committed 2014-09-22 14:23:36 +08:00
1 parent 79ec08141a
commit 7df60af60e
3 files changed
+17 -21

No files matched your search

+1 -1
View File
@@ -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