Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
remote-helpers/test-bzr.sh: do not use "grep '\s'"
author
Torsten Bögershausen
<tboegi@web.de>
Sun, 7 Apr 2013 08:48:30 +0000
(10:48 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 7 Apr 2013 15:41:34 +0000
(08:41 -0700)
Using grep "devel\s\+3:" to find at least one whitspace is not
portable on all grep versions; not all grep versions understand "\s"
as a "whitespace".
Use a literal TAB followed by SPACE.
The + as a qualifier for "one or more" is not a basic regular
expression; use egrep instead of grep.
Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/test-hg.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
072dda6
)
diff --git
a/contrib/remote-helpers/test-hg.sh
b/contrib/remote-helpers/test-hg.sh
index 5f81dfae6c4a31f11ed766dd467fdd4a542afdf3..7bb81f2f8e0e288eb7e392075491fc1df0bd91d1 100755
(executable)
--- a/
contrib/remote-helpers/test-hg.sh
+++ b/
contrib/remote-helpers/test-hg.sh
@@
-115,7
+115,7
@@
test_expect_success 'update bookmark' '
git push
) &&
- hg -R hgrepo bookmarks |
grep "devel\s\
+3:"
+ hg -R hgrepo bookmarks |
egrep "devel[ ]
+3:"
'
test_done