This repository has been archived by the owner on Feb 28, 2022. It is now read-only.
forked from objcode/v8
-
Notifications
You must be signed in to change notification settings - Fork 4
Adding a new branch
v8 edited this page Jun 28, 2012
·
4 revisions
When a new branch has been added into SVN repo, a corresponding Git branch must be created and set up for tracking.
- in the SVN history, find the "version" commit that precedes branch creation, obtain its hash (
git svn find-rev rXXXX
on thetrunk
branch); - in the Git repo, create a file in the
.git/refs/remotes/branches
with the name of the branch (say3.3
), and write the commit hash there; - in
.git/config
, add the new branch (in the list of branches, and a section); - create a git branch for tracking:
git branch --track 3.3 refs/remotes/branches/3.3
; - erase git-svn cache:
rm -rf .git/svn
; -
git svn fetch
(will take awhile); - add the new branch into the list in
update.sh
script.
Forcing git-svn to fetch a particular branch (in case it skips it for some reason):
in .git/config
:
[svn-remote "svn"]
url = https://v8.googlecode.com/svn
fetch = 3.11:refs/remotes/branches/3.11
branches = branches/{3.11}:refs/remotes/branches/*
then just do git svn fetch
(takes awhile as usual).