Skip to content

Commit ed6b957

Browse files
authored
Skip .git{,hub} files when packaging (#8743)
1 parent 9701d3a commit ed6b957

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

package/build_boards_manager_package.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,16 @@ mkdir -p ${outdir}
7171
# Some files should be excluded from the package
7272
cat << EOF > exclude.txt
7373
.git
74+
.git-blame-ignore-revs
75+
.github
7476
.gitignore
7577
.gitmodules
76-
.travis.yml
77-
package
78+
ISSUE_TEMPLATE.md
7879
doc
80+
package
7981
EOF
8082
# Also include all files which are ignored by git
83+
# TODO: .gitattributes helper for the above?
8184
git ls-files --other --directory >> exclude.txt
8285
# Now copy files to $outdir
8386
rsync -a --exclude-from 'exclude.txt' ${srcdir}/ ${outdir}/

0 commit comments

Comments
 (0)