mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 08:50:06 +02:00
fake teamwork better
This commit is contained in:
parent
62867c9f43
commit
380bcfaa4b
1 changed files with 3 additions and 5 deletions
|
@ -1142,11 +1142,9 @@ GitEngine.prototype.fakeTeamworkStarter = function() {
|
|||
}
|
||||
|
||||
this.validateArgBounds(this.generalArgs, 0, 2);
|
||||
// ugly command line arg parsing
|
||||
var branch = this.generalArgs[0] || 'master';
|
||||
if (!this.origin.refs[branch]) {
|
||||
branch = 'master';
|
||||
}
|
||||
// allow formats of: git Faketeamwork 2 or git Faketeamwork side 3
|
||||
var branch = (this.origin.refs[this.generalArgs[0]]) ?
|
||||
this.generalArgs[0] || 'master';
|
||||
var numToMake = parseInt(this.generalArgs[0], 10) || this.generalArgs[1] || 1;
|
||||
|
||||
// make sure its a branch and exists
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue