mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-22 09:29:31 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237950 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
459 B
Bash
Executable File
18 lines
459 B
Bash
Executable File
#!/bin/bash
|
|
# A simple script to synchronise a fuzz test corpus
|
|
# with an external git repository.
|
|
# Usage:
|
|
# pull_and_push_fuzz_corpus.sh DIR
|
|
# It assumes that DIR is inside a git repo and push
|
|
# can be done w/o typing a password.
|
|
cd $1
|
|
git add *
|
|
git commit -m "fuzz test corpus"
|
|
git pull --rebase --no-edit
|
|
for((attempt=0; attempt<5; attempt++)); do
|
|
echo GIT PUSH $1 ATTEMPT $attempt
|
|
if $(git push); then break; fi
|
|
git pull --rebase --no-edit
|
|
done
|
|
|