author | Johannes Sixt <johannes.sixt@telecom.at> | |
Tue, 4 Dec 2007 11:38:32 +0000 (12:38 +0100) | ||
committer | Johannes Sixt <johannes.sixt@telecom.at> | |
Mon, 23 Jun 2008 11:40:30 +0000 (13:40 +0200) | ||
commit | f1a4dfb85a432ae338d162179eaac5d50154fbeb | |
tree | d354d2d9327d50623ed65c6782a51fc8f8a715d8 | tree | snapshot |
parent | 6072fc314e87d53bec7266df5b6c3db2c2c82829 | commit | diff |
Windows: Wrap execve so that shell scripts can be invoked.
When an external git command is invoked, it can be a Bourne shell script.
This patch looks into the command file to see whether it is one.
In this case, the command line is rearranged to invoke the shell
with the proper arguments.
With this change, scripted git commands work. Command line arguments
to those scripts cannot be complex (contain spaces or double-quotes), yet.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
When an external git command is invoked, it can be a Bourne shell script.
This patch looks into the command file to see whether it is one.
In this case, the command line is rearranged to invoke the shell
with the proper arguments.
With this change, scripted git commands work. Command line arguments
to those scripts cannot be complex (contain spaces or double-quotes), yet.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
compat/mingw.c | diff | blob | history | |
compat/mingw.h | diff | blob | history |