potiuk commented on a change in pull request #6523: [AIRFLOW-5873] 
KubernetesPodOperator fixes and test
URL: https://github.com/apache/airflow/pull/6523#discussion_r345225483
 
 

 ##########
 File path: scripts/ci/_utils.sh
 ##########
 @@ -777,7 +777,9 @@ function build_image_on_ci() {
     echo "Finding changed file names ${TRAVIS_BRANCH}...HEAD"
     echo
 
-    CHANGED_FILE_NAMES=$(git diff --name-only "${TRAVIS_BRANCH}...HEAD")
+    git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
+    git fetch origin ${TRAVIS_BRANCH}
+    CHANGED_FILE_NAMES=$(git diff --name-only 
"remotes/origin/${TRAVIS_BRANCH}...HEAD")
 
 Review comment:
   Nice! Thanks!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to