mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-29 22:29:40 +02:00
much better interaction on levels keys with tabs
This commit is contained in:
parent
12e921a781
commit
c522722513
4 changed files with 56 additions and 2 deletions
|
@ -685,6 +685,13 @@ var commandConfig = {
|
|||
var refspecParts = firstArg.split(':');
|
||||
source = refspecParts[0];
|
||||
destination = validateBranchName(engine, refspecParts[1]);
|
||||
if (source === "" && !engine.origin.refs[options.destination]) {
|
||||
throw new GitError({
|
||||
msg: intl.todo(
|
||||
'cannot delete branch ' + options.destination + ' which doesnt exist'
|
||||
)
|
||||
});
|
||||
}
|
||||
} else {
|
||||
if (firstArg) {
|
||||
// we are using this arg as destination AND source. the dest branch
|
||||
|
|
|
@ -1193,7 +1193,7 @@ GitEngine.prototype.fetchCore = function(sourceDestPairs, options) {
|
|||
}, this);
|
||||
|
||||
chain = chain.then(_.bind(function() {
|
||||
// update all the destinations
|
||||
// update all the destinations
|
||||
_.each(sourceDestPairs, function(pair) {
|
||||
var ours = this.refs[pair.destination];
|
||||
var theirCommitID = this.origin.getCommitFromRef(pair.source).get('id');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue