~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-security

« back to all changes in this revision

Viewing changes to t/t4102-apply-rename.sh

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-10-04 08:27:01 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20071004082701-rsd058ontoqz4i30
Tags: 1:1.5.3.4-1
new upstream point release (closes: #445188).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Copyright (c) 2005 Junio C Hamano
4
4
#
5
5
 
6
 
test_description='git-apply handling copy/rename patch.
 
6
test_description='git apply handling copy/rename patch.
7
7
 
8
8
'
9
9
. ./test-lib.sh
26
26
chmod +x foo
27
27
 
28
28
test_expect_success setup \
29
 
    'git-update-index --add foo'
 
29
    'git update-index --add foo'
30
30
 
31
31
test_expect_success apply \
32
 
    'git-apply --index --stat --summary --apply test-patch'
 
32
    'git apply --index --stat --summary --apply test-patch'
33
33
 
34
34
if [ "$(git config --get core.filemode)" = false ]
35
35
then
40
40
fi
41
41
 
42
42
test_expect_success 'apply reverse' \
43
 
    'git-apply -R --index --stat --summary --apply test-patch &&
 
43
    'git apply -R --index --stat --summary --apply test-patch &&
44
44
     test "$(cat foo)" = "This is foo"'
45
45
 
46
46
cat >test-patch <<\EOF
56
56
EOF
57
57
 
58
58
test_expect_success 'apply copy' \
59
 
    'git-apply --index --stat --summary --apply test-patch &&
 
59
    'git apply --index --stat --summary --apply test-patch &&
60
60
     test "$(cat bar)" = "This is bar" -a "$(cat foo)" = "This is foo"'
61
61
 
62
62
test_done