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

« back to all changes in this revision

Viewing changes to t/t4004-diff-rename-symlink.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:
16
16
    'prepare reference tree' \
17
17
    'echo xyzzy | tr -d '\\\\'012 >yomin &&
18
18
     ln -s xyzzy frotz &&
19
 
    git-update-index --add frotz yomin &&
20
 
    tree=$(git-write-tree) &&
 
19
    git update-index --add frotz yomin &&
 
20
    tree=$(git write-tree) &&
21
21
    echo $tree'
22
22
 
23
23
test_expect_success \
26
26
     rm -f yomin &&
27
27
     ln -s xyzzy nitfol &&
28
28
     ln -s xzzzy bozbar &&
29
 
    git-update-index --add --remove frotz rezrov nitfol bozbar yomin'
 
29
    git update-index --add --remove frotz rezrov nitfol bozbar yomin'
30
30
 
31
31
# tree has frotz pointing at xyzzy, and yomin that contains xyzzy to
32
32
# confuse things.  work tree has rezrov (xyzzy) nitfol (xyzzy) and
34
34
# rezrov and nitfol are rename/copy of frotz and bozbar should be
35
35
# a new creation.
36
36
 
37
 
GIT_DIFF_OPTS=--unified=0 git-diff-index -M -p $tree >current
 
37
GIT_DIFF_OPTS=--unified=0 git diff-index -M -p $tree >current
38
38
cat >expected <<\EOF
39
39
diff --git a/bozbar b/bozbar
40
40
new file mode 120000