Test for Issue #151

This commit is contained in:
Peter Cottle 2013-12-15 17:25:30 -08:00
parent fcd0ffce85
commit 4c350da546

View file

@ -346,5 +346,12 @@ describe('Git Remotes', function() {
);
});
it('does not fetch if one arg is not branch ref', function() {
expectTreeAsync(
'git clone; git fakeTeamwork 2; git fetch origin master~1',
'{"branches":{"master":{"target":"C1","id":"master","remoteTrackingBranchID":"o/master"},"o/master":{"target":"C1","id":"o/master","remoteTrackingBranchID":null}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"}},"tags":{},"HEAD":{"target":"master","id":"HEAD"},"originTree":{"branches":{"master":{"target":"C3","id":"master","remoteTrackingBranchID":null}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C2"],"id":"C3"}},"tags":{},"HEAD":{"target":"master","id":"HEAD"}}}'
);
});
});