From cb604213743839453565a58afbb72bb63a66a9e1 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 11 Sep 2025 06:41:22 -0500 Subject: [PATCH] rm more readonly stuff finally --- repo.merge.go | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/repo.merge.go b/repo.merge.go index 88bc0bf..7f18d1c 100644 --- a/repo.merge.go +++ b/repo.merge.go @@ -50,19 +50,21 @@ func (r *Repo) MergeToMaster() (*cmd.Status, error) { if r.GetCurrentBranchName() != r.GetMasterBranchName() { return nil, fmt.Errorf("repo not on master branch") } - if r.GetReadOnly() { - r.Reload() // rescan the repo - // master branch is read only. you can not git push - lh := r.GetLocalHash("devel") - rh := r.GetRemoteHash("devel") - if lh == rh { - // log.Info(r.FullPath, "local devel == remote devel", lh, rh) - } else { - log.Info(r.FullPath, "local devel != remote devel", lh, rh) + /* + if r.GetReadOnly() { + r.Reload() // rescan the repo + // master branch is read only. you can not git push + lh := r.GetLocalHash("devel") + rh := r.GetRemoteHash("devel") + if lh == rh { + // log.Info(r.FullPath, "local devel == remote devel", lh, rh) + } else { + log.Info(r.FullPath, "local devel != remote devel", lh, rh) + } + log.Info("can't merge to master on read only() repos. trying anyway") + // return nil, fmt.Errorf("can't merge to master on read only() repos") } - log.Info("can't merge to master on read only() repos. trying anyway") - // return nil, fmt.Errorf("can't merge to master on read only() repos") - } + */ if r.CheckDirty() { return nil, fmt.Errorf("repo is dirty") }