summaryrefslogtreecommitdiff
path: root/git-gui/lib/database.tcl
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-12-16 13:12:23 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-12-18 14:00:45 -0800
commitb4f61b7fa455b6bea2a12d46c59d8685f761018b (patch)
tree88d0fc6c6a352669808c4b75b4656c0f8d4f5d89 /git-gui/lib/database.tcl
parentfsmonitor: preserve utf8 filenames in fsmonitor-watchman log (diff)
downloadtgif-b4f61b7fa455b6bea2a12d46c59d8685f761018b.tar.xz
p7519: improve check for prerequisite WATCHMAN
The return code of command -v with a non-existing command is 1 in bash and 127 in dash. Use that return code directly to allow the script to work with dash and without watchman (e.g. on Debian). While at it stop redirecting the output. stderr is redirected to /dev/null by test_lazy_prereq already, and stdout can actually be useful -- the path of the found watchman executable is sent there, but it's shown only if the script was run with --verbose. Signed-off-by: Rene Scharfe <l.s.r@web.de> Acked-by: Ben Peart <benpeart@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/database.tcl')
0 files changed, 0 insertions, 0 deletions