Skip to content

Commit 194ff03

Browse files
authored
Merge pull request ethereum#2513 from ethereum/onlyPushIfSomethingToPush
Only push to bytecode repository if there is something to push.
2 parents 76d3b7c + 066e995 commit 194ff03

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/bytecodecompare/storebytecode.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,8 @@ EOF
9898
REPORT="$DIRNAME/$ZIP_SUFFIX.txt"
9999
cp ../report.txt "$REPORT"
100100
# Only push if adding actually worked, i.e. there were changes.
101-
if git add "$REPORT"
101+
if git add "$REPORT" && git commit -a -m "Added report $REPORT"
102102
then
103-
git commit -a -m "Added report $REPORT"
104103
git pull --rebase
105104
git push origin
106105
else

0 commit comments

Comments
 (0)