Updating local CAS repository

28 views
Skip to first unread message

Dustin Luck

unread,
Apr 1, 2022, 6:31:59 PM4/1/22
to CAS Community
I'm wondering if anyone has a solution for this issue.

To start our update to CAS 6.5, we cloned the cas-overlay-template repository from github, then made our modifications, checking them in to our own repository as we went along. Now that there is a new version, I thought the right thing to do would be to pull the latest from the 6.5 branch. However, doing so results in one of two things:
  • without rebase: an error that says, "fatal: refusing to merge unrelated histories"
  • with rebase: many, many conflicts that have to be manually resolved
I wound up doing a fresh clone to a temp directory and using WinMerge to apply the diffs and then commit. My guess is that git can't do a good job of merging the changes from 6.5.0 to 6.5.2 because the cas-overlay-template repository doesn't keep the commit history.

Appreciate any help or hints
Thanks

Ray Bon

unread,
Apr 4, 2022, 12:30:38 PM4/4/22
to cas-...@apereo.org
Dustin,

With the initializer creation of cas overlay there is no change history, as you note.
I clone the overlay project in a temp directory and do a normal diff with my overlay project and copy over changes.


Ray

On Fri, 2022-04-01 at 15:31 -0700, Dustin Luck wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional territory the university stands, and the Songhees, Esquimalt and WSÁNEĆ peoples whose historical relationships with the land continue to this day.

Dustin Luck

unread,
Apr 5, 2022, 11:17:22 AM4/5/22
to CAS Community, Ray Bon
Thanks, Ray. That's what I wound up doing too. I wish there was a better solution.
Reply all
Reply to author
Forward
0 new messages