t9402: Simplify git ls-tree

Use "git ls-tree --name-only" which does not need a sed to filter out the sha Signed-off-by: Torsten Bögershausen <tboegi@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Torsten Bögershausen committed Dec 8, 2012 at 22:35 UTC 941c1e0402442cebf0add6b609a0efc23f520446
1 file changed +1 -1
t/t9402-git-cvsserver-refs.sh
+1 -1
@@ -41,7 +41,7 @@ check_end_full_tree() {
41 sort <"$WORKDIR/check.list" >expected &&
42 find "$sandbox" -name CVS -prune -o -type f -print | sed -e "s%$sandbox/%%" | sort >act1 &&
43 test_cmp expected act1 &&
44 - git ls-tree -r "$2" | sed -e "s/^.*blob [0-9a-fA-F]*[ ]*//" | sort >act2 &&
44 + git ls-tree --name-only -r "$2" | sort >act2 &&
45 test_cmp expected act2 &&
46 rm expected act1 act2
47 }