in our comnpany we want to move our deployment pipline from jenkins agent to USS and so we are discovering the rocket git port for z/OS.
But we have some problems with the zos-working-tree-encoding translation. After git clone, the entire working tree ist marked as modified.
The files in our git repo are in ANSI (WINDOWS 1252) codepage.
We are using on our Mainframe the german EBCDIC codepage 1141.
git --version
git version 2.26.2-78
z/OS 2.3
.gitattributes
*.CBL zos-working-tree-encoding=IBM-1141 git-encoding=IBM-1252
*.CPY zos-working-tree-encoding=IBM-1141 git-encoding=IBM-1252
*.REX zos-working-tree-encoding=IBM-1141 git-encoding=IBM-1252
*.BMS zos-working-tree-encoding=IBM-1141 git-encoding=IBM-1252
09:01:27 uuuuuu@ssssssss~/gitrepo $ git clone https://github.com/xxxxxx
Cloning into 'mainframe'...
remote: Enumerating objects: 36495, done.
remote: Counting objects: 100% (4369/4369), done.
remote: Compressing objects: 100% (2050/2050), done.
remote: Total 36495 (delta 2564), reused 3846 (delta 2110), pack-reused 32126
Receiving objects: 100% (36495/36495), 81.42 MiB | 3.39 MiB/s, done.
Resolving deltas: 100% (25314/25314), done.
Updating files: 100% (22956/22956), done.
09:02:13 uuuuuu@ssssssss~/gitrepo $ cd mainframe/
09:02:19 uuuuuu@ssssssss~/gitrepo/mainframe $ git status
Refresh index: 100% (22956/22956), done.
On branch produktion
Your branch is up to date with 'origin/produktion'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: xxx/cobol/UPVB0020.CBL
modified: xxx/cobol/UPVB0021.CBL
modified: xxx/cobol/UPVB0022.CBL
modified: xxx/cobol/UPVB0023.CBL
modified: xxx/cobol/UPVB0024.CBL
modified: xxx/cobol/UPVB0025.CBL
modified: xxx/cobol/UPVB0026.CBL
....
many other files
....
ls -laT for those files:
10:04:48 uuuuuuuu@sssssss~/gitrepo/mainframe/xxx/cobol $ ls -laT UPVB002*
t IBM-1141 T=on -rw-rw-r-- 1 uuuuuuu GGGGG 46467 Mar 24 09:12 UPVB0020.CBL
t IBM-1141 T=on -rw-rw-r-- 1 uuuuuuu GGGGG 24690 Mar 24 09:12 UPVB0021.CBL
t IBM-1141 T=on -rw-rw-r-- 1 uuuuuuu GGGGG 20514 Mar 24 09:12 UPVB0022.CBL
t IBM-1141 T=on -rw-rw-r-- 1 uuuuuuu GGGGG 18463 Mar 24 09:12 UPVB0023.CBL
t IBM-1141 T=on -rw-rw-r-- 1 uuuuuuu GGGGG 15993 Mar 24 09:12 UPVB0024.CBL
does anybody have an idea why those sources are marked as modified?
kind regards, david
------------------------------
David Dylong
Databaseadmnistrator
Deutsche Vermögensberatung Aktiengesellschaft · DVAG
Frankfurt am Main DE
------------------------------
