summaryrefslogtreecommitdiff
path: root/t/t3900/1-UTF-8.txt
diff options
context:
space:
mode:
authorLibravatar Thomas Rast <trast@student.ethz.ch>2010-07-29 17:10:22 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-08-09 09:15:01 -0700
commit3c8710aeaa81a70ecad9facfc332d843ee37de35 (patch)
tree4b7e473d63d36ae4d3bdd1263961da2db2bc7288 /t/t3900/1-UTF-8.txt
parentAllow "check-ref-format --branch" from subdirectory (diff)
downloadtgif-3c8710aeaa81a70ecad9facfc332d843ee37de35.tar.xz
t7003: fix subdirectory-filter test
The test would not fail if the filtering failed to do anything, since in test -z "$(git diff HEAD directorymoved:newsubdir)"' 'directorymoved:newsubdir' is not valid, so git-diff fails without printing anything on stdout. But then the exit status of git-diff is lost, whereas test -z "" succeeds. Use 'git diff --exit-code' instead, which does the right thing and has the added bonus of showing the differences if there are any. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3900/1-UTF-8.txt')
0 files changed, 0 insertions, 0 deletions