Skip to content

Commit

Permalink
Merge pull request #2513 from ethereum/onlyPushIfSomethingToPush
Browse files Browse the repository at this point in the history
Only push to bytecode repository if there is something to push.
  • Loading branch information
chriseth authored Jul 3, 2017
2 parents 76d3b7c + 066e995 commit 194ff03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/bytecodecompare/storebytecode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,8 @@ EOF
REPORT="$DIRNAME/$ZIP_SUFFIX.txt"
cp ../report.txt "$REPORT"
# Only push if adding actually worked, i.e. there were changes.
if git add "$REPORT"
if git add "$REPORT" && git commit -a -m "Added report $REPORT"
then
git commit -a -m "Added report $REPORT"
git pull --rebase
git push origin
else
Expand Down

0 comments on commit 194ff03

Please sign in to comment.