Skip to content

Commit 2b7d0ac

Browse files
committed
g: fix hg root handling
! needs to have a space after it to do the right thing...
1 parent eecc53e commit 2b7d0ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ ! -z "$f" ]; then
88
shift
99
fi
1010

11-
if [ -n "$F_USE_GREPR" ] || !hg root 2>/dev/null; then
11+
if [ -n "$F_USE_GREPR" ] || ! hg root >/dev/null 2>/dev/null; then
1212
grep --color $f -ir -- "$g" *
1313
else
1414
hg files -0 | xargs -0 grep -i --color $f -- "$g"

0 commit comments

Comments
 (0)