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

« back to all changes in this revision

Viewing changes to t/t5520-pull.sh

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-04-22 13:31:05 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20070422133105-tkmhz328g2p0epz1
Tags: 1:1.5.1.2-1
* new upstream point release.
* debian/changelog.upstream: upstream changes taken from mailing list
  announcement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
test_expect_success 'pulling into void' '
18
18
        mkdir cloned &&
19
19
        cd cloned &&
20
 
        git init-db &&
 
20
        git init &&
21
21
        git pull ..
22
22
'
23
23
 
29
29
        diff file cloned/file
30
30
'
31
31
 
 
32
test_expect_success 'test . as a remote' '
 
33
 
 
34
        git branch copy master &&
 
35
        git config branch.copy.remote . &&
 
36
        git config branch.copy.merge refs/heads/master &&
 
37
        echo updated >file &&
 
38
        git commit -a -m updated &&
 
39
        git checkout copy &&
 
40
        test `cat file` = file &&
 
41
        git pull &&
 
42
        test `cat file` = updated
 
43
'
 
44
 
 
45
test_expect_success 'the default remote . should not break explicit pull' '
 
46
        git checkout -b second master^ &&
 
47
        echo modified >file &&
 
48
        git commit -a -m modified &&
 
49
        git checkout copy &&
 
50
        git reset --hard HEAD^ &&
 
51
        test `cat file` = file &&
 
52
        git pull . second &&
 
53
        test `cat file` = modified
 
54
'
 
55
 
32
56
test_done
33
57