Skip to content

Commit

Permalink
base: implement patch_keep_crlf option for git sources
Browse files Browse the repository at this point in the history
  • Loading branch information
no92 committed Nov 7, 2024
1 parent 80a3d97 commit 4b7344b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions xbstrap/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2552,6 +2552,7 @@ def patch_src(cfg, src):
"git",
"am",
"-3",
"--keep-cr" if source.get("patch_keep_crlf", False) else "--no-keep-cr",
"--no-gpg-sign",
"--committer-date-is-author-date",
os.path.join(src.patch_dir, patch),
Expand Down
2 changes: 2 additions & 0 deletions xbstrap/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ definitions:
type: boolean
'submodules':
type: boolean
'patch_keep_crlf':
type: boolean
'regenerate': { $ref: '#/definitions/build_steps' }
'sources_required': { $ref: '#/definitions/source_deps' }
'tools_required': { $ref: '#/definitions/tool_deps' }
Expand Down

0 comments on commit 4b7344b

Please sign in to comment.