Skip to content

Commit 014b7bc

Browse files
authored
ansible: update git-wrapper for z/OS (#3323)
Tag `.git/config` as iso8859-1 to prevent it being interpreted as EBCDIC. Refs: #3320 (comment)
1 parent a7826d4 commit 014b7bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ansible/roles/jenkins-worker/templates/git-wrapper.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ export _TAG_REDIR_ERR=txt
55
export _TAG_REDIR_IN=txt
66
export _TAG_REDIR_OUT=txt
77

8+
if [[ $WORKSPACE != "" ]]; then
9+
chtag -t -c iso8859-1 "$WORKSPACE/.git/config"
10+
fi
11+
812
if [[ $1 == "rev-parse" ]]; then
913
{{ git_cmd }} "$@" | cat
1014
elif [[ $1 == "whatchanged" ]]; then

0 commit comments

Comments
 (0)