redmine git repo, tag 1.1.0 not on 1.0-stable branch
Added by Matt Connolly almost 14 years ago
Hi, I've set up a redmine instance as a git repository itself, tracking the redmine source on github. Here's an excerpt of `git config -l`:
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* remote.origin.url=git://github.com/edavis10/redmine.git branch.master.remote=origin branch.master.merge=refs/heads/master branch.local_site.remote=origin branch.local_site.merge=refs/heads/1.0-stable branch.1.0-stable.remote=origin branch.1.0-stable.merge=refs/heads/1.0-stable
So I'm fetching all branches, and i have local branch 'master' tracking remote 'master' and local branches 'local_site' and '1.0-stable' tracking origin's '1.0-stable' branch.
In the past, I've managed to update easily from 1.0.3 to 1.0.4 for example, simply by doing `git pull`. The new commits in the 1.0-stable branch have been fast forward in my 1.0-stable branch and merged into my live_site branch.
I notice the new version 1.1.0 has a tag which is not on that branch.
Is there going to be a 1.1-stable branch? Or should I just merge the tag 1.1 into my 1.0-stable branch or something?
Replies (3)
RE: redmine git repo, tag 1.1.0 not on 1.0-stable branch - Added by Matt Connolly almost 14 years ago
Whoops... Seems there is a 1.1 branch.. Just appeared! (at least it just appeared in my local repo which I did `git fetch`...)
RE: redmine git repo, tag 1.1.0 not on 1.0-stable branch - Added by Matt Connolly almost 14 years ago
And it seems there's no easy merge between 1.0-stable and 1.1-stable. Here's what I did:
# get the 1.1-stable branch git checkout origin/1.1-stable # create a temporary branch to hold the merge git branch merger git checkout merger # merge from 1.0 to 1.1, keeping everything in 1.1 git merge -s ours origin/1.0-stable # now git knows how to get from 1.0 to 1.1, let's # apply that to our live_site branch git checkout live_site git merge merger # done, delete the merger branch git branch -d merger # don't forget to restart ruby touch tmp/restart.txt
Hope that helps someone.
RE: redmine git repo, tag 1.1.0 not on 1.0-stable branch - Added by Felix Schäfer almost 14 years ago
Matt Connolly wrote:
And it seems there's no easy merge between 1.0-stable and 1.1-stable.
Not per se, because the git repo is a mirror of the svn repo, which uses "svn techniques" that don't always translate well or easily to git.