Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t/t7600: avoid GNUism in grep
author
Junio C Hamano
<gitster@pobox.com>
Sat, 5 Jan 2008 06:22:55 +0000
(22:22 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 5 Jan 2008 08:07:51 +0000
(
00:07
-0800)
Using \+ to mean "one or more" in grep without -E is a GNU
extension outside POSIX. Avoid it.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7600-merge.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
144126a
)
diff --git
a/t/t7600-merge.sh
b/t/t7600-merge.sh
index 6424c6e2c0b27f6d4dd19e9088710db932d2ace9..50c51c82facdf30fffa4517763c84ce862aa8c27 100755
(executable)
--- a/
t/t7600-merge.sh
+++ b/
t/t7600-merge.sh
@@
-371,7
+371,7
@@
test_expect_success 'override config option -n' '
git merge --summary c2 >diffstat.txt &&
verify_merge file result.1-5 msg.1-5 &&
verify_parents $c1 $c2 &&
git merge --summary c2 >diffstat.txt &&
verify_merge file result.1-5 msg.1-5 &&
verify_parents $c1 $c2 &&
- if ! grep -e "^ file |
\+
2 +-$" diffstat.txt
+ if ! grep -e "^ file |
*
2 +-$" diffstat.txt
then
echo "[OOPS] diffstat was not generated"
fi
then
echo "[OOPS] diffstat was not generated"
fi
@@
-386,7
+386,7
@@
test_expect_success 'override config option --summary' '
git merge -n c2 >diffstat.txt &&
verify_merge file result.1-5 msg.1-5 &&
verify_parents $c1 $c2 &&
git merge -n c2 >diffstat.txt &&
verify_merge file result.1-5 msg.1-5 &&
verify_parents $c1 $c2 &&
- if grep -e "^ file |
\+
2 +-$" diffstat.txt
+ if grep -e "^ file |
*
2 +-$" diffstat.txt
then
echo "[OOPS] diffstat was generated"
false
then
echo "[OOPS] diffstat was generated"
false