bug fix for rebasing

This commit is contained in:
Peter Cottle 2012-10-20 18:54:11 -07:00
parent 51a92227c3
commit e88539bd08

View file

@ -727,6 +727,13 @@ GitEngine.prototype.rebaseStarter = function() {
};
GitEngine.prototype.rebase = function(targetSource, currentLocation) {
var targetObj = this.resolveID(targetSource);
if (targetObj.get('type') !== 'branch') {
throw new GitError({
msg: 'Only rebase onto branches! Not individual commits'
});
}
// first some conditions
if (this.isUpstreamOf(targetSource, currentLocation)) {
throw new CommandResult({