I installed git for the first time in a test mainframe LPAR and I am facing the following issue..
If I disable AUTOCVT and I don't chtag any file and I do manual iconv conversion for each file before git-add (when pushing to a remote server)
iconv -f IBM1047 -t utf-8 Hello.java >Hello3.java
or the opposite after git-clone (after cloning from a remote server) everything works fine.
if I enable AUTOCVT on profile
export _BPXK_AUTOCVT=ON
export _CEE_RUNOPTS="FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)"
export _TAG_REDIR_ERR=txt
export _TAG_REDIR_IN=txt
export _TAG_REDIR_OUT=txt
and change tag like this
chtag -t -c IBM-1047 Hello.java
when I git add I get
fatal: can't add "Hello.java": file is tagged, set corresponding zos-working-tree-encoding attribute or reset file tag
on the same folder I have the following .gitattributes tagged as iso8859-1
# The default for text files
* git-encoding=iso8859-1 zos-working-tree-encoding=ibm-1047
# git's files (which MUST be ASCII)
.gitattributes git-encoding=iso8859-1 zos-working-tree-encoding=iso8859-1
.gitignore git-encoding=iso8859-1 zos-working-tree-encoding=iso8859-1