Skip to content

Commit aacf24b

Browse files
committed
Change all occurences of master to development in flake8_diff.sh
1 parent 88d1554 commit aacf24b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

ci_scripts/flake8_diff.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ git remote --verbose
4040

4141
# Travis does the git clone with a limited depth.
4242
# This may not be enough to find the common ancestor with
43-
# $REMOTE/master so we unshallow the git checkout
43+
# $REMOTE/development so we unshallow the git checkout
4444
if [[ -a .git/shallow ]]; then
4545
echo -e '\nTrying to unshallow the repo:'
4646
echo '--------------------------------------------------------------------------------'
@@ -61,7 +61,7 @@ if [[ "$TRAVIS" == "true" ]]; then
6161
fi
6262
else
6363
# We want to fetch the code as it is in the PR branch and not
64-
# the result of the merge into master. This way line numbers
64+
# the result of the merge into development. This way line numbers
6565
# reported by Travis will match with the local code.
6666
LOCAL_BRANCH_REF=travis_pr_$TRAVIS_PULL_REQUEST
6767
# In Travis the PR target is always origin
@@ -70,7 +70,7 @@ if [[ "$TRAVIS" == "true" ]]; then
7070
fi
7171

7272
# If not using the commit range from Travis we need to find the common
73-
# ancestor between $LOCAL_BRANCH_REF and $REMOTE/master
73+
# ancestor between $LOCAL_BRANCH_REF and $REMOTE/development
7474
if [[ -z "$COMMIT_RANGE" ]]; then
7575
if [[ -z "$LOCAL_BRANCH_REF" ]]; then
7676
LOCAL_BRANCH_REF=$(git rev-parse --abbrev-ref HEAD)
@@ -79,16 +79,16 @@ if [[ -z "$COMMIT_RANGE" ]]; then
7979
echo '--------------------------------------------------------------------------------'
8080
git --no-pager log -2 $LOCAL_BRANCH_REF
8181

82-
REMOTE_MASTER_REF="$REMOTE/master"
83-
# Make sure that $REMOTE_MASTER_REF is a valid reference
84-
echo -e "\nFetching $REMOTE_MASTER_REF"
82+
REMOTE_DEVELOPMENT_REF="$REMOTE/development"
83+
# Make sure that $REMOTE_DEVELOPMENT_REF is a valid reference
84+
echo -e "\nFetching $REMOTE_DEVELOPMENT_REF"
8585
echo '--------------------------------------------------------------------------------'
86-
git fetch $REMOTE master:refs/remotes/$REMOTE_MASTER_REF
86+
git fetch $REMOTE development:refs/remotes/$REMOTE_DEVELOPMENT_REF
8787
LOCAL_BRANCH_SHORT_HASH=$(git rev-parse --short $LOCAL_BRANCH_REF)
88-
REMOTE_MASTER_SHORT_HASH=$(git rev-parse --short $REMOTE_MASTER_REF)
88+
REMOTE_DEVELOPMENT_SHORT_HASH=$(git rev-parse --short $REMOTE_DEVELOPMENT_REF)
8989

90-
COMMIT=$(git merge-base $LOCAL_BRANCH_REF $REMOTE_MASTER_REF) || \
91-
echo "No common ancestor found for $(git show $LOCAL_BRANCH_REF -q) and $(git show $REMOTE_MASTER_REF -q)"
90+
COMMIT=$(git merge-base $LOCAL_BRANCH_REF $REMOTE_DEVELOPMENT_REF) || \
91+
echo "No common ancestor found for $(git show $LOCAL_BRANCH_REF -q) and $(git show $REMOTE_DEVELOPMENT_REF -q)"
9292

9393
if [ -z "$COMMIT" ]; then
9494
exit 1
@@ -97,7 +97,7 @@ if [[ -z "$COMMIT_RANGE" ]]; then
9797
COMMIT_SHORT_HASH=$(git rev-parse --short $COMMIT)
9898

9999
echo -e "\nCommon ancestor between $LOCAL_BRANCH_REF ($LOCAL_BRANCH_SHORT_HASH)"\
100-
"and $REMOTE_MASTER_REF ($REMOTE_MASTER_SHORT_HASH) is $COMMIT_SHORT_HASH:"
100+
"and $REMOTE_DEVELOPMENT_REF ($REMOTE_DEVELOPMENT_SHORT_HASH) is $COMMIT_SHORT_HASH:"
101101
echo '--------------------------------------------------------------------------------'
102102
git --no-pager show --no-patch $COMMIT_SHORT_HASH
103103

0 commit comments

Comments
 (0)