https://bugs.winehq.org/show_bug.cgi?id=51877
--- Comment #16 from mata sutupud@yahoo.com --- I should probably have mentioned that the default backend was used, which calls "patches/gitapply.sh", and "git apply" is called from there (line 113).
The changes from cf29ed121d9d0dc73370be7c0081ec31ce3faf0e don't really affect that. It now shows an error when trying to run with "--backend git-apply" error: '--index' outside a repository Seems since the .git directory does not exist at that location, --index can't be used.
But with the patch backend it still only appears to apply the patches if "git apply" is called and the target directory isn't within a git repository, but not a wine git repository itself. Adding "--git-dir .git" there too (but without --index) makes it work - even tough the .git direcotry isn't found. It also works when invoked with "--nogit" from the python script.