forked from angular/angular.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix($parse): correctly assign expressions who's path is undefined and…
… that use brackets notation Closes angular#8039
- Loading branch information
1 parent
36831ec
commit 69bd9ba
Showing
3 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env node | ||
|
||
var rewire = require('rewire'), | ||
shell = rewire('shelljs'), | ||
program = require('commander'); | ||
|
||
program | ||
.version('0.0.0') | ||
.option('-p, --pr', 'PR number') | ||
.option('-n, --not-tests', 'Ignore local tests') | ||
.parse(process.argv); | ||
|
||
if (!program.pr) { | ||
console.log('PR number required and not provided') | ||
program.help(); | ||
process.exit(1); | ||
} | ||
|
||
var PR_NUMBER = program.pr, | ||
ORIGINAL_BRANCH= shell.exec('git rev-parse --abbrev-ref HEAD'); | ||
|
||
var stashed = false; | ||
if (shell.exec('git status -s --untracked-files=no', {silent: true}).output) { | ||
shell.exec('git stash'); | ||
stashed = true; | ||
} | ||
|
||
shell.exec('git fetch upstreamm pull/' + PR_NUMBER + '/head:pr/' + PR_NUMBER); | ||
shell.exec('git checkout pr/' + PR_NUMBER); | ||
|
||
|
||
shell.exec('git fetch upstream master'); | ||
|
||
if (shell.exec('grunt ci-checks tests').code === 0) { | ||
|
||
} | ||
|
||
if (stashed) { | ||
shell.exec('git stash pop'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters