Alessandro Mautone
1 min readSep 29, 2020

--

You are right, I had the same issue and I need to update the article, nice catch 🤓
I still don’t fully understand why that happens, but the way I solved is by adding git add . to the script.
So the final script will be:

#!/bin/bash
echo "Running spotless check"
./gradlew spotlessApply
git add .

--

--

Alessandro Mautone
Alessandro Mautone

Written by Alessandro Mautone

Android Lead Engineer @Canyon 🤖 🇻🇪🇮🇹 Paraglider, Runner, Kayaker.

Responses (2)