mirror of https://github.com/tc39/test262.git
Use .. for git diffs in the CI routines (#2140)
the double dot gets only commits not in the left side of the double dot. The right side assumes HEAD. This will allow us to fetch the correct list of new or modified files in the current branch.
This commit is contained in:
parent
1e4c5ae01e
commit
3d4909b0fd
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "$CIRCLE_PULL_REQUEST" != "" ]; then
|
||||
paths=$(git diff --diff-filter ACMR --name-only origin/master -- test/)
|
||||
paths=$(git diff --diff-filter ACMR --name-only origin/master.. -- test/)
|
||||
|
||||
if [ "$paths" == "" ]; then
|
||||
echo No test files added or modified. Exiting.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "$CIRCLE_PULL_REQUEST" != "" ]; then
|
||||
paths=$(git diff --diff-filter ACMR --name-only origin/master -- test/)
|
||||
paths=$(git diff --diff-filter ACMR --name-only origin/master.. -- test/)
|
||||
|
||||
if [ "$paths" == "" ]; then
|
||||
echo No test files added or modified. Exiting.
|
||||
|
|
Loading…
Reference in New Issue