]> git.ipfire.org Git - thirdparty/git.git/commit - run-command.c
mingw: allow hooks to be .exe files
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 30 Jan 2017 12:28:28 +0000 (13:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Jan 2017 16:49:43 +0000 (08:49 -0800)
commit235be51fbecbbdaafd48f762e808c55861e02850
tree18eaad290ad2197ff4ce0a9e60ed93f4b249f1e3
parentad36dc8b4b165bf9eb3576b42a241164e312d48c
mingw: allow hooks to be .exe files

Executable files in Windows need to have the extension '.exe', otherwise
they do not work. Extend the hooks to not just look at the hard coded
names, but also at the names extended by the custom STRIP_EXTENSION,
which is defined as '.exe' in Windows.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
run-command.c