This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set -x | |
| jgit --version | |
| rm -fr gerrit.src.git gerrit.dst.git gerrit.client | |
| git clone --bare --mirror https://gerrit.googlesource.com/gerrit gerrit.dst.git | |
| cp -r gerrit.dst.git gerrit.dst.git.backup | |
| git clone --bare --mirror gerrit.dst.git gerrit.src.git | |
| git clone gerrit.src.git gerrit.client | |
| ( cd gerrit.client; date >>README.md; git add README.md; git commit -m "modify README.md"; git push origin; ) | |
| ( cd gerrit.src.git; time jgit push origin HEAD:refs/heads/master; ) | |
| rm -fr gerrit.dst.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git init subm | |
| touch subm/a | |
| git -C subm add a | |
| git -C subm commit -m initSubm | |
| git init root | |
| git -C root submodule add ../subm | |
| git -C root commit -m addingSubm | |
| echo forMaster >>root/subm/a |
OlderNewer