Detach Git Bash
commite7af79862b136efb414ac545f282939e2d290e3e
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 23 Mar 2014 19:28:01 +0000 (23 14:28 -0500)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 24 Mar 2014 13:19:12 +0000 (24 08:19 -0500)
tree9f29ab2941be34a05eb10aafdc84224629103308
parentda974445324d5dca09a9a1f67e8e6e0627226fb2
Detach Git Bash

When called from the Windows Explorer, we must not wait for the
stdout/stderr of Git Bash.

A recent change made for FarManager makes Git Cheetah capture
stderr/stdout even when we are not interested in it, to avoid cluttering
FarManager's precious console. Due to this workaround, Git Bash makes the
Explorer -- Git Cheetah's primary intended consumer -- hang.

Since Git Bash does not output anything to the calling console, let's just
force the detached mode by avoiding the FarManager workaround *just* for
Git Bash.

Thanks to John Stevenson for catching a bug in an earlier version of this
commit.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
common/cheetahmenu.c
common/exec.c
common/exec.h