Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase helps with render woes #756

Merged
merged 3 commits into from
Jun 5, 2024
Merged

Rebase helps with render woes #756

merged 3 commits into from
Jun 5, 2024

Conversation

avahoffman
Copy link
Contributor

Problem

hint: You have divergent branches and need to specify how to reconcile them.
hint: You can do so by running one of the following commands sometime before
hint: your next pull:
hint: 
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
fatal: Need to specify how to reconcile divergent branches.

example

Solution

I've found --rebase helps with this. But not sure if it's overkill. Welcome everyone's thoughts!

Copy link
Contributor

github-actions bot commented May 30, 2024

No spelling errors! 🎉
Comment updated at 2024-06-04-17:36:57 with changes from 370f48a

@avahoffman avahoffman requested a review from cansavvy May 30, 2024 21:28
Copy link
Contributor

github-actions bot commented May 30, 2024

The broken url errors check is currently being re-run 🏃
Comment updated at 2024-06-04-17:36:04 with changes from 370f48a

Copy link
Contributor

github-actions bot commented May 30, 2024

Re-rendered previews from the latest commit:

* note not all html features will be properly displayed in the "quick preview" but it will give you a rough idea.

Updated at 2024-06-04 with changes from the latest commit 370f48a

@cansavvy
Copy link
Collaborator

cansavvy commented Jun 3, 2024

--rebase does feel like a lot. I'm not concerned about using it on the preview branch because it is a throw away branch, but have to think a bit more about using rebase with the main branch. Hmmm...

@cansavvy
Copy link
Collaborator

cansavvy commented Jun 3, 2024

I think if it works I'd like to try a less drastic fix first which is what we implemented on Chris's Intro to R repo: fhdsl/Intro_to_R#41

@cansavvy
Copy link
Collaborator

cansavvy commented Jun 3, 2024

I think implementing to the preview branch we should definitely go ahead with! Thanks @avahoffman

But it needs to be added to ottr-reports to be effective. (this is why the URL checker is still failing) See this PR: jhudsl/ottr-reports#36

@avahoffman
Copy link
Contributor Author

Done!

@cansavvy
Copy link
Collaborator

cansavvy commented Jun 5, 2024

I think we gotta do rebase. My other less drastic solutions aren't working. I think it should be fine though? It's only for the docs folder we will be doing this.

What I still don't understand is why this just came up as an issue and wasn't an issue previously. What's changed?

@cansavvy
Copy link
Collaborator

cansavvy commented Jun 5, 2024

Okay I have one more try.

@cansavvy
Copy link
Collaborator

cansavvy commented Jun 5, 2024

Never mind. Let's merge this.

@cansavvy cansavvy merged commit 11c4c12 into main Jun 5, 2024
7 of 8 checks passed
@cansavvy cansavvy deleted the avahoffman-patch-1 branch June 5, 2024 13:42
@avahoffman
Copy link
Contributor Author

avahoffman commented Jun 5, 2024

@cansavvy I imagine one of the actions, perhaps checkout, has been updated or changed?

I actually think rebase might be appropriate (and not too aggressive) here, since all the changes executed by the rendering steps should always supersede any changes on main. Trying to think of a situation where it could be problematic.

@cansavvy
Copy link
Collaborator

cansavvy commented Jun 5, 2024

@cansavvy I imagine one of the actions, perhaps checkout, has been updated or changed?

I actually think rebase might be appropriate (and not too aggressive) here, since all the changes executed by the rendering steps should always supersede any changes on main. Trying to think of a situation where it could be problematic.

Yeah I agree on all of this. I think you're right. Just was worried about moving to fast on something that maybe had potentially to be messy, but I think its good.

cansavvy added a commit to jhudsl/OTTR_Template_Website that referenced this pull request Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants