submodule support and closed #478

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

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