summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bd1e17e)
raw | patch | inline | side by side (parent: bd1e17e)
author | Mark Allen <mrallen1@yahoo.com> | |
Thu, 26 May 2005 02:11:31 +0000 (19:11 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Thu, 26 May 2005 02:37:10 +0000 (19:37 -0700) |
This is the remainder of testcase fix by Mark Allen to make them
work on his Darwin box. I was using "xargs -r" (GNU) where it
was not needed, sed -ne '/^\(author\|committer\)/s|>.*|>|p'
where some sed does not know what to do with '\|', and also
"cmp - file" to compare standard input with a file, which his
cmp does not support.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
work on his Darwin box. I was using "xargs -r" (GNU) where it
was not needed, sed -ne '/^\(author\|committer\)/s|>.*|>|p'
where some sed does not know what to do with '\|', and also
"cmp - file" to compare standard input with a file, which his
cmp does not support.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
t/t0000-basic.sh | patch | blob | history | |
t/t0110-environment-names-old.sh | patch | blob | history |
diff --git a/t/t0000-basic.sh b/t/t0000-basic.sh
index 88a9a00314beb1cb684c37318408d5ad94be21ae..b521f513f34f48724ae4d4c9dde0d4ff29764f8f 100755 (executable)
--- a/t/t0000-basic.sh
+++ b/t/t0000-basic.sh
done
test_expect_success \
'adding various types of objects with git-update-cache --add.' \
- 'find path* ! -type d -print0 | xargs -0 -r git-update-cache --add'
+ 'find path* ! -type d -print0 | xargs -0 git-update-cache --add'
# Show them and see that matches what we expect.
test_expect_success \
index 9389796f84414be6c786cf0ce667c1eebdda98e0..c548b9b49757954984978c574b76787fc40a0abb 100755 (executable)
EOF
test_expect_success \
'verify old AUTHOR variables were used correctly in commit' \
- 'sed -ne '\''/^\(author\|committer\)/s|>.*|>|p'\'' current |
- cmp - expected'
+ 'sed -ne '\''/^\(author\)/s|>.*|>|p'\'' -e'\''/^\(committer\)/s|>.*|>|p'\''\ current > out && cmp out expected'
unset GIT_DIR
test_expect_success \
EOF
test_expect_success \
'verify new AUTHOR variables were used correctly in commit.' \
- 'sed -ne '\''/^\(author\|committer\)/s|>.*|>|p'\'' current |
- cmp - expected'
+ 'sed -ne '\''/^\(author\)/s|>.*|>|p'\'' -e'\''/^\(committer\)/s|>.*|>|p'\''\ current > out && cmp out expected'
test_done