Skip to content

Commit

Permalink
Skip .git{,hub} files when packaging (#8743)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr authored Dec 6, 2022
1 parent 9701d3a commit ed6b957
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package/build_boards_manager_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,16 @@ mkdir -p ${outdir}
# Some files should be excluded from the package
cat << EOF > exclude.txt
.git
.git-blame-ignore-revs
.github
.gitignore
.gitmodules
.travis.yml
package
ISSUE_TEMPLATE.md
doc
package
EOF
# Also include all files which are ignored by git
# TODO: .gitattributes helper for the above?
git ls-files --other --directory >> exclude.txt
# Now copy files to $outdir
rsync -a --exclude-from 'exclude.txt' ${srcdir}/ ${outdir}/
Expand Down

0 comments on commit ed6b957

Please sign in to comment.