rm readonly checks finally

This commit is contained in:
Jeff Carr 2025-09-11 06:39:34 -05:00
parent bf59b9124a
commit c2e3108698
1 changed files with 0 additions and 11 deletions

View File

@ -32,11 +32,6 @@ func (r *Repo) MergeToDevel() (*cmd.Status, error) {
// devel branch is not remote. do not try 'git push'
return nil, nil
}
if r.GetReadOnly() {
r.Reload() // rescan the repo
// devel branch is read only. you can not git push
return nil, nil
}
// it seems like we have write access. lets find out!
cmd = []string{"git", "push"}
@ -83,12 +78,6 @@ func (r *Repo) MergeToMaster() (*cmd.Status, error) {
return nil, result.Error
}
if r.GetReadOnly() {
r.Reload() // rescan the repo
// master branch is read only. you can not git push
return nil, nil
}
// it seems like we have write access. lets find out!
cmd = []string{"git", "push"}
result = r.RunRealtimeVerbose(cmd)