spring-io / spring-javaformat

Apache License 2.0
795 stars 110 forks source link

Unable to run 'apply' within Pre-Commit Git Hook script #396

Closed firasrg closed 8 months ago

firasrg commented 8 months ago

Hello !

i'm building a Git Hook Script :

#!/bin/sh

./mvnw spring-javaformat:apply

When I commit, i notice:

I tried many ways to make it happen but no one works, I'm wondering why and what is the way out for this ?

firasrg commented 8 months ago

Solved on Stackoverflow