diff options
author | Professor Bloodstone <[email protected]> | 2021-04-05 13:14:54 +0200 |
---|---|---|
committer | Kyle Wood <[email protected]> | 2021-04-09 01:28:46 -0500 |
commit | 304a216ba583d24f8a24b911ca64249eec560ed3 (patch) | |
tree | 9023047ebfd3fb70c24340100fa560eb7e9bfa79 /scripts | |
parent | d8e384a164192ee84a2245d3964a9be9a8d050a5 (diff) | |
download | Paper-304a216ba583d24f8a24b911ca64249eec560ed3.tar.gz Paper-304a216ba583d24f8a24b911ca64249eec560ed3.zip |
[CI-SKIP] Ignore gitignore when adding files in automation
Continuation of #5387
Fixes #5456
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/apatch.sh | 2 | ||||
-rwxr-xr-x | scripts/importmcdev.sh | 2 | ||||
-rwxr-xr-x | scripts/init.sh | 4 | ||||
-rwxr-xr-x | scripts/rebuildPatches.sh | 2 | ||||
-rwxr-xr-x | scripts/upstreamMerge.sh | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/scripts/apatch.sh b/scripts/apatch.sh index 38a2046912..f56771d9ef 100755 --- a/scripts/apatch.sh +++ b/scripts/apatch.sh @@ -52,7 +52,7 @@ fi if [ -f "$file" ] && [[ "$filedata" == *"<<<<<"* ]]; then export summaryfail="$summaryfail\nFAILED TO APPLY: $i" else - $gitcmd add "$i" + $gitcmd add --force "$i" export summarygood="$summarygood\nAPPLIED CLEAN: $i" fi done diff --git a/scripts/importmcdev.sh b/scripts/importmcdev.sh index d438a5a5cf..3e8c8e2169 100755 --- a/scripts/importmcdev.sh +++ b/scripts/importmcdev.sh @@ -121,6 +121,6 @@ importLibrary com.mojang datafixerupper com/mojang/serialization Dynamic.java set -e cd "$workdir/Spigot/Spigot-Server/" rm -rf nms-patches applyPatches.sh makePatches.sh >/dev/null 2>&1 -$gitcmd add . --force -A >/dev/null 2>&1 +$gitcmd add --force . -A >/dev/null 2>&1 echo -e "mc-dev Imports\n\n$MODLOG" | $gitcmd commit . -F - ) diff --git a/scripts/init.sh b/scripts/init.sh index 9c51762ae6..8b1929c836 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -54,7 +54,7 @@ do mkdir -p "$(dirname $cb/"$file")" cp "$nms/$file" "$cb/$file" done < <(find nms-patches -type f -print0) -$gitcmd add src +$gitcmd add --force src $gitcmd commit -m "Minecraft $ $(date)" --author="Vanilla <[email protected]>" # apply patches @@ -71,7 +71,7 @@ do "$patch" -d src/main/java -p 1 < "$patchFile" done < <(find nms-patches -type f -print0) -$gitcmd add src +$gitcmd add --force src $gitcmd commit -m "CraftBukkit $ $(date)" --author="CraftBukkit <[email protected]>" $gitcmd checkout -f HEAD~2 ) diff --git a/scripts/rebuildPatches.sh b/scripts/rebuildPatches.sh index df1934b491..a910d6f23d 100755 --- a/scripts/rebuildPatches.sh +++ b/scripts/rebuildPatches.sh @@ -52,7 +52,7 @@ function savePatches { $gitcmd format-patch --zero-commit --full-index --no-signature --no-stat -N -o "$basedir/${what_name}-Patches/" upstream/upstream >/dev/null cd "$basedir" - $gitcmd add -A "$basedir/${what_name}-Patches" + $gitcmd add --force -A "$basedir/${what_name}-Patches" if [ "$nofilter" == "0" ]; then cleanupPatches "$basedir/${what_name}-Patches" fi diff --git a/scripts/upstreamMerge.sh b/scripts/upstreamMerge.sh index cacfb8dec6..f011f708fc 100755 --- a/scripts/upstreamMerge.sh +++ b/scripts/upstreamMerge.sh @@ -16,7 +16,7 @@ function update { $gitcmd fetch && $gitcmd clean -fd && $gitcmd reset --hard origin/master refRemote=$(git rev-parse HEAD) cd ../ - $gitcmd add $1 -f + $gitcmd add --force $1 refHEAD=$(getRef HEAD "$workdir/$1") echo "$1 $refHEAD - $refRemote" if [ "$refHEAD" != "$refRemote" ]; then |