Skip to content

Commit

Permalink
[AIRFLOW-6818] Fix for old versions of git on Dockerhub builds (apach…
Browse files Browse the repository at this point in the history
…e#7440)

Dockerhub uses an old version of git (2.7.4 as of our testing in Feb
2020) so needs a slightly different syntax for git ls-files with an
exclusion. This works with current-latest git (2.25.0) too
  • Loading branch information
ashb authored Feb 17, 2020
1 parent 2c9345a commit e835df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ function filterout_deleted_files {
}

# This deals with files
git ls-files -z ':!:airflow/www/static/docs' | filterout_deleted_files | xargs -t -0 chmod og-w
git ls-files -z -- ./ ':!:airflow/www/static/docs' | filterout_deleted_files | xargs -0 chmod og-w
# and this deals with directories
git ls-tree -z -r -d --name-only HEAD | filterout_deleted_files | xargs -t -0 chmod og-w,og+x

Expand Down

0 comments on commit e835df5

Please sign in to comment.