forked from DocSavage/rails-authorization-plugin
-
Notifications
You must be signed in to change notification settings - Fork 2
/
README_developers.txt
43 lines (25 loc) · 874 Bytes
/
README_developers.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
INSTRUCTIONS FOR DEVELOPERS:
Pushing a read-only copy of the git repo master branch to the google code SVN repo.
--
Based on an article found at :
http://blog.nanorails.com/articles/2008/1/31/git-to-svn-read-only
Setup:
Clone a local copy of the git repo from GitHub:
'git clone [email protected]:DocSavage/rails-authorization-plugin.git'
cd rails-authorization-plugin
edit .git/config and add the following to the end:
--
[svn-remote "googlecode"]
url = https://rails-authorization-plugin.googlecode.com/svn/trunk
fetch = :refs/remotes/googlecode
--
run : 'git svn fetch'
run : 'git checkout -b local-svn googlecode'
run : 'git svn rebase'
run : 'git merge master'
run : 'git svn dcommit'
Now in the future as new changes are commit to master, do this to publish to GoogleCode:
$ git checkout local-svn
$ git merge master
$ git svn dcommit
And thats it!