diff options
Diffstat (limited to 'newRepo.go')
| -rw-r--r-- | newRepo.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -119,6 +119,10 @@ func (r *RepoList) makeAutotypistView(newRepo *RepoRow) { }) newRepo.endBox.NewButton("commit all", func() { + if ! newRepo.Status.IsUserBranch() { + log.Log(REPOWARN, "can not commit on non user branch") + return + } r.reposbox.Disable() // restore anything staged so everything can be reviewed newRepo.Status.RunCmd([]string{"git", "restore", "--staged", "."}) |
