I assume Git has been tested on a z/OS 3.1 system but I am having an issue with performing "git add ." and the only difference I can find is that I'm attempting to do it on a z/OS 3.1 system.
This is what I get when issuing git add .
fatal: can't add "zGIT-DS-Attributes": file is tagged, set corresponding zos-working-tree-encoding attribute or reset file tag
This is correct, the file is tagged IBM-1047 as seen here:
$ ls -lT total 2 drwxr-xr-x 2 AUZZ04S #KYNDRYL 0 Apr 30 00:00 Z-GIT t IBM-1047 T=on -rw------- 1 AUZZ04S #KYNDRYL 23 Apr 30 00:00 zGIT-DS-Attributes
The repository does have a attributes defined as follows:
$ cat .git/info/attributes | iconv -f ISO8859-1 -t IBM-1047 # # Default zGit .gitattributes file specifying the attributes of some # known file names # # # This file is copied to .git/info/attributes when a zGit repo is created # # * zos-working-tree-encoding=ibm-1047 ### Animations *.mpg binary *.mov binary *.mp3 binary *.mp4 binary *.wav binary *.whl binary
If I perform a "git check-attr -a zGIT-DS-Attributes" the command doesn't return any output if I change it to "git check-attr zos-working-tree-encoding zGIT-DS-Attributes" it does return something but its incorrect. As seen below:
$ git check-attr -a zGIT-DS-Attributes $ git check-attr zos-working-tree-encoding zGIT-DS-Attributes zGIT-DS-Attributes: zos-working-tree-encoding: unspecified
For some reason git is not picking up the attributes defined in .git/info/attributes.
I the gitattributes are not defined I can understand why i'm getting the "fatal: can't add zGit-DS-Attributes" message.
If I issue the same check-attr command with the same .git/info/attributes file on a z/OS 2.4 system I get the following:
$ check-attr -a zGIT-DS-Attributes zGIT-DS-Attributes: zos-working-tree-encoding: ibm-1047 $ git check-attr zos-working-tree-encoding zGIT-DS-Attributes zGIT-DS-Attributes: zos-working-tree-encoding: ibm-1047
The versions of git on both systems is identical 2.26.2-84
So far this has been the only problem I've found
------------------------------
Gary Freestone
Systems Programmer
Kyndryl Inc
Mt Helen VIC AU
------------------------------

