4
I’m using git in development, and I’m willing to put the project gradle
to be executed in the IC. To execute the gradle
, just give a ./gradlew
to start the process. However, when calling this in my IC, it complains that the file gradlew
is not executable.
However, I am unable to change the permission of this file, as everyone on the team uses Windows and chmod +x
in Windows is no-op, even about git-bash.
So, how to indicate to git change the permission to run a file, through Windows?
I don’t care here "fix" this problem at IC level, calling
chmod +x
before the execution of the command.
I understand the need totally, I have some . sh that I go through it (gradlew is one), but it will be run
sh ./gradlew
would already solve?– Guilherme Nascimento
Yes, it would solve at "IC level", as the
chmod +x
. But here the intention is more general.– Jefferson Quesado
I’m so used to
sh
, which is a very short command, which I don’t really care about, but I understand that when it comes to teamwork, usually other employees are much more likely to lack minimum understanding, or even need. If this is your need.– Guilherme Nascimento
He even tried
git update-index --chmod=+x caminho/gradlew
in Windows?– Guilherme Nascimento
I was hoping someone would answer that xD By the way, it works (needed the
--add
when I went stir today but details...)– Jefferson Quesado
It’s just that I’m running out of linux to download and test to see if it worked, so I didn’t answer, but I’m glad I already knew, adding content to the site, is what I like the most :)
– Guilherme Nascimento