diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 06:41:22 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 06:41:22 -0500 |
| commit | cb604213743839453565a58afbb72bb63a66a9e1 (patch) | |
| tree | 2cf951d47e81b5de250bb5f62a337f9500ec3635 | |
| parent | c2e310869856d60584d05e5a8eac05ef0b57fbe2 (diff) | |
rm more readonly stuff finallyv0.0.123
| -rw-r--r-- | repo.merge.go | 26 |
1 files 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") } |
