Peter Stuge wrote:
> > Please advise:
> > 1) How to push a patch from GITHUB to OpenSC staging directory.
> > In two or three sentences.
> 
> I would do:
> 
> One-time setup:
> a. Create Gerrit account and add username and public SSH key
> b. git clone from github which has the patch
> c. cd into cloned dir
> d. Install commit-msg hook
>    scp -p -P 8882 www.opensc-project.org:hooks/commit-msg .git/hooks/
> e. git remote add gerrit ssh://www.opensc-project.org:8882/OpenSC.git
> f. git config remote.gerrit.push HEAD:refs/for/master
> 
> For each patch:
> 1. Make the current branch equal to OpenSC GitHub + the patch (git rebase)
> 2. Check that the patch has a Change-Id, if not, git commit --amend -C HEAD
> 3. git push gerrit
> 
> In case multiple commits belong together in the same logical change
> or that they depend on each other, then the current branch should
> have all these commits following the last commit of OpenSC GitHub.

This is my prefered way. I just found confirmation of my guess that a
pull request sent to OpenSC GitHub will also arrive into Gerrit. So
if already using GitHub then that is probably the easiest way.


//Peter

Attachment: pgpNcKVnUNRsN.pgp
Description: PGP signature

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to