Skip to content

Commit 6e8937a

Browse files
ztzggitster
authored andcommitted
cvsserver: Add test for update -p
Signed-off-by: Damien Diederen <dash@foobox.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e78f69a commit 6e8937a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

t/t9400-git-cvsserver-server.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,24 @@ test_expect_success 'cvs update (merge no-op)' \
420420
GIT_CONFIG="$git_config" cvs -Q update &&
421421
diff -q merge ../merge'
422422

423+
cd "$WORKDIR"
424+
test_expect_success 'cvs update (-p)' '
425+
touch really-empty &&
426+
echo Line 1 > no-lf &&
427+
echo -n Line 2 >> no-lf &&
428+
git add really-empty no-lf &&
429+
git commit -q -m "Update -p test" &&
430+
git push gitcvs.git >/dev/null &&
431+
cd cvswork &&
432+
GIT_CONFIG="$git_config" cvs update &&
433+
rm -f failures &&
434+
for i in merge no-lf empty really-empty; do
435+
GIT_CONFIG="$git_config" cvs update -p "$i" >$i.out
436+
diff $i.out ../$i >>failures 2>&1
437+
done &&
438+
test -z "$(cat failures)"
439+
'
440+
423441
#------------
424442
# CVS STATUS
425443
#------------

0 commit comments

Comments
 (0)