Skip to content

Commit 941c1e0

Browse files
tboegigitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bd6f62c commit 941c1e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t9402-git-cvsserver-refs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ check_end_full_tree() {
4141
sort <"$WORKDIR/check.list" >expected &&
4242
find "$sandbox" -name CVS -prune -o -type f -print | sed -e "s%$sandbox/%%" | sort >act1 &&
4343
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 &&
4545
test_cmp expected act2 &&
4646
rm expected act1 act2
4747
}

0 commit comments

Comments
 (0)