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

« back to all changes in this revision

Viewing changes to t/t9106-git-svn-commit-diff-clobber.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:
66
66
        git-svn dcommit
67
67
        "
68
68
 
 
69
test_expect_success 'commit another change from svn side' "
 
70
        svn co $svnrepo t.svn &&
 
71
        cd t.svn &&
 
72
                echo third line from svn >> file &&
 
73
                poke file &&
 
74
                svn commit -m 'third line from svn' &&
 
75
        cd .. &&
 
76
        rm -rf t.svn
 
77
        "
 
78
 
 
79
test_expect_failure 'multiple dcommit from git-svn will not clobber svn' "
 
80
        git reset --hard refs/remotes/git-svn &&
 
81
        echo new file >> new-file &&
 
82
        git update-index --add new-file &&
 
83
        git commit -a -m 'new file' &&
 
84
        echo clobber > file &&
 
85
        git commit -a -m 'clobber' &&
 
86
        git svn dcommit
 
87
        " || true
 
88
 
 
89
 
 
90
test_expect_success 'check that rebase really failed' 'test -d .dotest'
 
91
 
 
92
test_expect_success 'resolve, continue the rebase and dcommit' "
 
93
        echo clobber and I really mean it > file &&
 
94
        git update-index file &&
 
95
        git rebase --continue &&
 
96
        git svn dcommit
 
97
        "
 
98
 
69
99
test_done