Skip to content

Commit

Permalink
git: fix: Fix continuous integration(CI) directory being included in …
Browse files Browse the repository at this point in the history
…the release packages

The `git-archive-all` utility doesn't treat the `/dir/` pattern as the
same with the `git archive` command, remove the trailing slash to
workaround the problem.

Fixes #1.
Fixes #3.

Refer-to: Description - gitattributes - Git Documentation <https://www.git-scm.com/docs/gitattributes#_description>
Refer-to: Patterns in .gitattributes do not work if they end with a slash · Issue #87 · Kentzo/git-archive-all <Kentzo/git-archive-all#87>
Refer-to: Identify root cause · Task · the-common/docker-compose-config-templates <https://gitlab.com/the-common/docker-compose-config-templates/-/work_items/2>
Signed-off-by: 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
  • Loading branch information
brlin-tw committed Nov 18, 2023
1 parent d09b8ed commit c926c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# Avoid exporting development files to release archive
/.* export-ignore
/continuous-integration/ export-ignore
/continuous-integration export-ignore

# Keep editorconfig for ease of editing of product files
/.editorconfig -export-ignore
Expand Down

0 comments on commit c926c8e

Please sign in to comment.