more push madness

This commit is contained in:
Peter Cottle 2013-10-14 18:33:56 -07:00
parent d3c0fc40a3
commit 3dd5102e2a
2 changed files with 16 additions and 1 deletions

View file

@ -177,5 +177,12 @@ describe('Git Remotes', function() {
);
});
it('will prune the origin tree when deleting branches', function() {
expectTreeAsync(
'git checkout -b foo; git commit; git clone; git push :foo',
'{"branches":{"master":{"target":"C1","id":"master","remoteTrackingBranchID":"o/master"},"foo":{"target":"C2","id":"foo","remoteTrackingBranchID":null},"o/master":{"target":"C1","id":"o/master","remoteTrackingBranchID":null}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"}},"HEAD":{"target":"foo","id":"HEAD"},"originTree":{"branches":{"master":{"target":"C1","id":"master","remoteTrackingBranchID":null}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"}},"HEAD":{"target":"master","id":"HEAD"}}}'
);
});
});