Navigation Menu

Skip to content

Commit

Permalink
[ci-skip] stop needing to specify --paper in upstreamCommit
Browse files Browse the repository at this point in the history
  • Loading branch information
granny committed Apr 14, 2023
1 parent 9429820 commit 96dbac3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/upstreamCommit.sh
Expand Up @@ -3,7 +3,7 @@
# requires curl & jq

# upstreamCommit --paper HASH --pufferfish HASH
# flag: --paper HASH - the commit hash to use for comparing commits between paper (PaperMC/Paper/compare/HASH...HEAD)
# flag: --paper HASH - (Optional) the commit hash to use for comparing commits between paper (PaperMC/Paper/compare/HASH...HEAD)
# flag: --pufferfish HASH - the commit hash to use for comparing commits between pufferfish (pufferfish-gg/Pufferfish/compare/HASH...HEAD)

function getCommits() {
Expand All @@ -14,7 +14,7 @@ function getCommits() {
set -e
PS1="$"

paperHash=""
paperHash=$(git diff gradle.properties | awk '/^-paperCommit =/{print $NF}')
pufferfishHash=""

TEMP=$(getopt --long paper:,pufferfish: -o "" -- "$@")
Expand Down Expand Up @@ -70,6 +70,8 @@ fi
disclaimer="Upstream has released updates that appear to apply and compile correctly"
log="Updated Upstream ($updated)\n\n${disclaimer}${logsuffix}"

git add gradle.properties

echo -e "$log" | git commit -F -

) || exit 1

0 comments on commit 96dbac3

Please sign in to comment.