mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-23 20:24:45 +02:00
Explicitly fail when unsupported range operator is specified
This commit is contained in:
parent
f178f6c118
commit
d4a2fbb2de
2 changed files with 8 additions and 1 deletions
|
@ -142,6 +142,13 @@ describe('Git', function() {
|
|||
);
|
||||
});
|
||||
|
||||
it('Range operator is not supported', function() {
|
||||
expectTreeAsync(
|
||||
'git checkout -b side C0; git cherry-pick C1..C0',
|
||||
'{"branches":{"master":{"target": "C1","id": "master"},"side":{"target":"C0","id": "side"}},"commits":{"C0":{"parents":[],"id": "C0","rootCommit": true},"C1":{"parents":["C0"],"id": "C1"}},"HEAD":{"id": "HEAD","target":"side"}}'
|
||||
);
|
||||
});
|
||||
|
||||
it('Forces branches', function() {
|
||||
expectTreeAsync(
|
||||
'git checkout -b side; git branch -f side C0',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue