fix loaders

This commit is contained in:
Ryooooooga 2022-03-26 21:55:44 +09:00 committed by Jesse Duffield
parent 86c259623c
commit 99ecc1cfdf
6 changed files with 30 additions and 28 deletions

View file

@ -142,7 +142,7 @@ func (self *BranchCommands) Rename(oldName string, newName string) error {
}
func (self *BranchCommands) GetRawBranches() (string, error) {
return self.cmd.New(`git for-each-ref --sort=-committerdate --format="%(HEAD)|%(refname:short)|%(upstream:short)|%(upstream:track)" refs/heads`).DontLog().RunWithOutput()
return self.cmd.New(`git for-each-ref --sort=-committerdate --format="%(HEAD)%00%(refname:short)%00%(upstream:short)%00%(upstream:track)" refs/heads`).DontLog().RunWithOutput()
}
type MergeOpts struct {