Skip to content

Commit 3014b57

Browse files
committed
fixup! mingw: allow hooks to be .exe files
1 parent cfe0aa1 commit 3014b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run-command.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ const char *find_hook(const char *name)
854854
strbuf_git_path(&path, "hooks/%s", name);
855855
if (access(path.buf, X_OK) < 0) {
856856
#ifdef STRIP_EXTENSION
857-
strbuf_addstr(&path, ".exe");
857+
strbuf_addstr(&path, STRIP_EXTENSION);
858858
if (access(path.buf, X_OK) >= 0)
859859
return path.buf;
860860
#endif

0 commit comments

Comments
 (0)