Skip to content

Commit

Permalink
bug fix (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Jun 12, 2023
1 parent cefa509 commit e410005
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/store/refs.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func (r *Refs) RenameBranch(rootGoitPath, curBranchName, newBranchName string) e

// rename branch
r.Heads[curNum].Name = newBranchName
sort.Slice(r.Heads, func(i, j int) bool { return r.Heads[i].Name < r.Heads[j].Name })

// rename file
oldPath := filepath.Join(rootGoitPath, "refs", "heads", curBranchName)
Expand Down

0 comments on commit e410005

Please sign in to comment.