Restore the executable bit in the git index with git update-index --chmod=+x gradlew, then commit and push. Verify with git ls-tree HEAD that gradlew shows mode 100755. This bites whenever the wrapper was created or edited on Windows or copied without permissions; fixing it in the repo fixes it for every CI run and every fresh clone.

Context: Stack Overflow #33820638 (accepted answer, 130 votes): the build fails with ./gradlew: Permission denied and exit 126. The accepted answer traces it to the file mode stored in git: gradlew is committed as 644 instead of 755, so the checkout is not executable.

## Matched source
Source: Published skill
Original query: "Travis CI: gradlew permission denied because git lost the exec bit"
Key terms: because, denied, exec, gradlew, lost, permission, travis
