mirror of
				https://github.com/taigrr/wtf
				synced 2025-01-18 04:03:14 -08:00 
			
		
		
		
	Merge pull request #608 from Seanstoppable/fixgitordering
Fix git ordering
This commit is contained in:
		
						commit
						7d99c12220
					
				@ -3,7 +3,6 @@ package git
 | 
			
		||||
import (
 | 
			
		||||
	"io/ioutil"
 | 
			
		||||
	"log"
 | 
			
		||||
	"sort"
 | 
			
		||||
	"strings"
 | 
			
		||||
 | 
			
		||||
	"github.com/gdamore/tcell"
 | 
			
		||||
@ -79,9 +78,6 @@ func (widget *Widget) Refresh() {
 | 
			
		||||
	repoPaths := utils.ToStrs(widget.settings.repositories)
 | 
			
		||||
 | 
			
		||||
	widget.GitRepos = widget.gitRepos(repoPaths)
 | 
			
		||||
	sort.Slice(widget.GitRepos, func(i, j int) bool {
 | 
			
		||||
		return widget.GitRepos[i].Path < widget.GitRepos[j].Path
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	widget.display()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user