File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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# ------------
You can’t perform that action at this time.
0 commit comments