In ./bridges
sub-directory you can find a git subtree
imported version of:
parity-bridges-common repository.
To fix Bridges code simply create a commit in current (polkadot
) repo. Best if
the commit is isolated to changes in ./bridges
sub-directory, because it makes
it easier to import that change back to upstream repo.
Note that it's totally fine to ping the Bridges Team to do that for you. The point
of adding the code as git subtree
is to reduce maintenance cost for Polkadot
developers.
If you still would like to either update the code to match latest code from the repo
or create an upstream PR read below. The following commands should be run in the
current (polkadot
) repo.
- Add Bridges repo as a local remote:
$ git remote add -f bridges [email protected]:paritytech/parity-bridges-common.git
If you plan to contribute back, consider forking the repository on Github and adding your personal fork as a remote as well.
$ git remote add -f my-bridges [email protected]:tomusdrw/parity-bridges-common.git
- To update Bridges:
$ git fetch bridges master
$ git subtree pull --prefix=bridges bridges master --squash
We use --squash
to avoid adding individual commits and rather squashing them
all into one.
- Contributing back to Bridges (creating upstream PR)
$ git subtree push --prefix=bridges my-bridges master
This command will push changes to your personal fork of Bridges repo, from where you can simply create a PR to the main repo.