Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chalstrick/864fecf5cc45c056e90225418d6b9c89 to your computer and use it in GitHub Desktop.
Save chalstrick/864fecf5cc45c056e90225418d6b9c89 to your computer and use it in GitHub Desktop.
perfTest_pushWithBitmaps.sh
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
cp -r gerrit.dst.git.backup gerrit.dst.git
( cd gerrit.src.git; git repack -a -d -b; time jgit push origin HEAD:refs/heads/master; )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment