fix: github-apply sometimes fails on PRs with lots of commits (#7604)

.patch is all commits individually, .diff is all commits merged
This commit is contained in:
Tony Murray
2017-11-01 16:19:41 -05:00
committed by Neil Lathwood
parent 6fcd406893
commit a688a77864

View File

@ -5,5 +5,5 @@ cd $LIBRENMS_DIR
case $1 in
''|*[!0-9]*) echo "You must specify a PR number to apply a patch" ;;
*) curl -s https://patch-diff.githubusercontent.com/raw/librenms/librenms/pull/${1}.patch | git apply -v ${2} ;;
*) curl -s https://patch-diff.githubusercontent.com/raw/librenms/librenms/pull/${1}.diff | git apply -v ${2} ;;
esac