upload_native.sh: use "git diff" instead of "git diff-tree"

fix-openal-soft-deadlink
Stephen Gold 5 years ago
parent 91f304272a
commit 2c2f76cca1
  1. 8
      private/upload_native.sh

@ -17,10 +17,10 @@ function native_changes_common() {
git checkout "$TRAVIS_BRANCH"
}
echo " - Checking if natives changed in commit $TRAVIS_COMMIT.."
NATIVE_CHANGES_BULLET="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-bullet-native/)"
NATIVE_CHANGES_ANDROID_BULLET="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-bullet-native-android/)"
NATIVE_CHANGES_ANDROID_NATIVES="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-android-native/)"
echo " - Determine which native libraries changed, if any"
NATIVE_CHANGES_BULLET="$(git diff --name-only -- jme3-bullet-native/libs/native/)"
NATIVE_CHANGES_ANDROID_BULLET="$(git diff --name-only -- jme3-bullet-native-android/libs/)"
NATIVE_CHANGES_ANDROID_NATIVES="$(git diff --name-only -- jme3-android-native/libs/)"
if [ "$NATIVE_CHANGES_BULLET" != "" ]; then
echo " - Found changes in jme3-bullet-native"

Loading…
Cancel
Save