@matheusbsbs / matheus-bagliano / commits / fdeb6bf55b
Fork 0

t0000-basic: Add ls-tree recursive test back.

When we updated ls-tree recursive output to omit the tree nodes, 246cc52f388cae8ca99e5a12b8458c9bfa467765 adjusted the old test so that we do not expect to see trees in its output. Later, with 0f8f45cb4a7e664b396f73c25891da46b953b8b8, we added back the ability to show both with -t option, but we forgot to update the test as well. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Apr 26, 2006 at 02:27 UTC fdeb6bf55b7c578ce1735092c6dfbf6968cbee5c
1 file changed +21
t/t0000-basic.sh
+21
@@ -174,6 +174,27 @@ test_expect_success \
174 'git-ls-tree -r output for a known tree.' \
175 'diff current expected'
176
177 +# But with -r -t we can have both.
178 +test_expect_success \
179 + 'showing tree with git-ls-tree -r -t' \
180 + 'git-ls-tree -r -t $tree >current'
181 +cat >expected <<\EOF
182 +100644 blob f87290f8eb2cbbea7857214459a0739927eab154 path0
183 +120000 blob 15a98433ae33114b085f3eb3bb03b832b3180a01 path0sym
184 +040000 tree 58a09c23e2ca152193f2786e06986b7b6712bdbe path2
185 +100644 blob 3feff949ed00a62d9f7af97c15cd8a30595e7ac7 path2/file2
186 +120000 blob d8ce161addc5173867a3c3c730924388daedbc38 path2/file2sym
187 +040000 tree 21ae8269cacbe57ae09138dcc3a2887f904d02b3 path3
188 +100644 blob 0aa34cae68d0878578ad119c86ca2b5ed5b28376 path3/file3
189 +120000 blob 8599103969b43aff7e430efea79ca4636466794f path3/file3sym
190 +040000 tree 3c5e5399f3a333eddecce7a9b9465b63f65f51e2 path3/subp3
191 +100644 blob 00fb5908cb97c2564a9783c0c64087333b3b464f path3/subp3/file3
192 +120000 blob 6649a1ebe9e9f1c553b66f5a6e74136a07ccc57c path3/subp3/file3sym
193 +EOF
194 +test_expect_success \
195 + 'git-ls-tree -r output for a known tree.' \
196 + 'diff current expected'
197 +
198 ################################################################
199 rm .git/index
200 test_expect_success \