Dominik
Dominik
@sebastianfeldmann unfortunatelly there isn't an exception - dump of $result gives the following including return-code 0: ``` SebastianFeldmann\Cli\Command\Runner\Result^ {#201 -cmdResult: SebastianFeldmann\Cli\Command\Result^ {#200 -cmd: "git rev-parse --verify HEAD" -code: 0 -validExitCodes:...
@ktomk Im using Windows 11 with Ubuntu20.04 on WSL2 with Docker Desktop installed - the git commands are all calles in Ubuntu WSL - so no git installed on Windows...
@ktomk yes it is... 
Don't get stuck into WSL-Topic - the SO-Answer from torek - as far as I understood it - will be the same in a Linux-Native System - if you need...
First of all: I tested the same situation on a Linux native System (Ubuntu 20.04) and the behaviour is exactly the same. One File is changed, but not added and...
> Can you confirm that `STAGED_FILES` has the right files in it? yes -> I also added an echo $STAGED_FILES for test and it contained the right files. > That...
> Could you try to add some debug output that echos the `GIT_INDEX_FILE` environment variable? I added echo $STAGED_FILES and $GIT_INDEX_FILE to the hook-script and get the following (one file...
@sebastianfeldmann does my last comment help somehow?
Maybe I didn't get the point... I tried the following now: captainhook.json ``` "config": { "verbosity": "verbose", "run-mode": "docker", "run-exec": "docker exec -t -w $GIT_INDEX_FILE container-php" }, ``` in my...
ooooookkkkkkkk..... after again reading toreks answer on SO and reading your answers here, I got the point... Finally I dont think that a docker run -v {workingdir}:{workingdir} is very convenient,...