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

« back to all changes in this revision

Viewing changes to t/t7201-co.sh

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-06-19 17:32:30 UTC
  • mfrom: (1.1.19)
  • Revision ID: package-import@ubuntu.com-20070619173230-g0xnsa5lw7uvmk80
Tags: 1:1.5.2.2-1
* new upstream point release.
  * Fix typo in remote branch example in git user manual (closes: #427502).
* debian/diff/0003-git-branch-track-fix-tracking-branch-computation.diff:
  remove; applied upstream.
* debian/versions.upstream: new; ordered list of upstream versions,
  starting with 1.0.0.
* debian/changelog.upstream.sh: new; create changelog.upstream from git
  shortlog using debian/versions.upstream.
* debian/changelog.upstream: re-created through changelog.upstream.sh.
* debian/diff/0003-git-svn-trailing-slash-in-prefix-is-mandatory-with.diff:
  new; git-svn: trailing slash in prefix is mandatory with --branches/-b
  (closes: #429443).

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
        fi
191
191
'
192
192
 
 
193
test_expect_success 'checkout with ambiguous tag/branch names' '
 
194
 
 
195
        git tag both side &&
 
196
        git branch both master &&
 
197
        git reset --hard &&
 
198
        git checkout master &&
 
199
 
 
200
        git checkout both &&
 
201
        H=$(git rev-parse --verify HEAD) &&
 
202
        M=$(git show-ref -s --verify refs/heads/master) &&
 
203
        test "z$H" = "z$M" &&
 
204
        name=$(git symbolic-ref HEAD 2>/dev/null) &&
 
205
        test "z$name" = zrefs/heads/both
 
206
 
 
207
'
 
208
 
 
209
test_expect_success 'checkout with ambiguous tag/branch names' '
 
210
 
 
211
        git reset --hard &&
 
212
        git checkout master &&
 
213
 
 
214
        git tag frotz side &&
 
215
        git branch frotz master &&
 
216
        git reset --hard &&
 
217
        git checkout master &&
 
218
 
 
219
        git checkout tags/frotz &&
 
220
        H=$(git rev-parse --verify HEAD) &&
 
221
        S=$(git show-ref -s --verify refs/heads/side) &&
 
222
        test "z$H" = "z$S" &&
 
223
        if name=$(git symbolic-ref HEAD 2>/dev/null)
 
224
        then
 
225
                echo "Bad -- should have detached"
 
226
                false
 
227
        else
 
228
                : happy
 
229
        fi
 
230
 
 
231
'
 
232
 
193
233
test_done