Skip to main content
Participating Frequently
Mar 21, 2021 12:08 AM UTC

Upgrading to Git 2.26

I'm a bit confused about the instructions for upgrading Git from 2.14 to 2.26.

There are some notes:
Once you change a repository with Git for z/OS 2.26.2, this repository won't be compatible with previous versions of Git for z/OS. It is vital that entire team will move to the new version of Git
and
When you clone the repository with Git for z/OS 2.26.2, you need to run git status command. You might see that Git marks some files with the attribute as modified, even if you didn't modify them.
...
We recommend to update the files in the index (commands: git add ; git commit).

Typically different people will be working with separate clones of the repository and different branches, so at what point does the incompatibility occur?

Presumably you can still clone a repository and check out old commits with the old version?

Does the commit for files that 2.26 marked as modified interfere with merging branches, either on z/OS or via pull request?
What happens with e.g. git bisect?

I'm not sure what "It is vital that entire team will move to the new version of Git" actually means in practice. I fear that it means all branches need to be converted to the new version. Or worse, perhaps branches crossing the release can't be easily merged, so all existing branches need to be merged first.

Can you clarify, and hopefully set my mind at ease?

------------------------------
Andrew Rowley
Black Hill Software
------------------------------

    15 replies

    Cristiano Guadagnino
    Participating Frequently
    May 7, 2021 6:07 AM UTC
    Hey Lionel,
     
    I'm assuming you have some hex non-display character as attributes between each of your pull-downs (File, Edit, Edit_Settings, etc), and I'm assuming its X'15' which is similar to panel ISREDDE2 where IBM uses X'15'  which basically means this panel cannot be managed by Git because X'15' is EBCDIC's NL (New Line) character.  It goes into Git OK but when retrieved its interrupted as a new line, like you are seeing.
     
    I'm still using Git 2.14 and my .attribute file is
     
    #                                                                               
    #  Default .gitattributes file specifiing that all files are in EBCDIC          
    #                                                                               
                                                                                    
    *                    zos-working-tree-encoding=ibm-1047 git-encoding=iso8859-1  
                                                                                    
    .gitattributes       zos-working-tree-encoding=iso8859-1 git-encoding=iso8859-1
     
    With this combination the only problem I have is with the X'15' character.  All other characters go into and out of Git unchanged.
     
     
    Regards / Ci Zhi Jing Li / Mit freundlichen Grüßen / Saudações
    Gary Freestone

    Senior z/OS Technical Specialist
    Software Management Group Leader
    GSD Platform Services
    Integrated Technology Delivery
    IBM Global Services Australia and New Zealand
    Email: garyf@au1.ibm.com
    Tie line: 67097083
    Phone: +61-3-533-97083


    Hi Gary,
    I would like to know how do you cope with this problem of the X'15' character.
    I am still using GIT 2.14 like you.

    Best regards
    Cris
    New Participant
    May 10, 2021 10:57 PM UTC
    Hi Gary,
    I would like to know how do you cope with this problem of the X'15' character.
    I am still using GIT 2.14 like you.

    Best regards
    Cris
    Cristiano,

    Unfortunately I haven't found a way around the X'15' problem :-(

    The best I can do is, perform a test when a user attempts to save a member/dataset in ISPF edit display a message informing them of the problem. As seen here:


    ------------------------------
    Gary Freestone
    IBM Australia
    ------------------------------
    Cristiano Guadagnino
    Participating Frequently
    May 11, 2021 3:59 AM UTC
    Cristiano,

    Unfortunately I haven't found a way around the X'15' problem :-(

    The best I can do is, perform a test when a user attempts to save a member/dataset in ISPF edit display a message informing them of the problem. As seen here:


    ------------------------------
    Gary Freestone
    IBM Australia
    ------------------------------
    Thank you Gary.
    I think I'll follow your lead.

    Cris
    Gary Freestone
    Participating Frequently
    Sep 30, 2021 7:29 AM UTC
    Thank you Gary.
    I think I'll follow your lead.

    Cris
    @Tatiana Balaburkina

    In your post dated 2021-03-25 you stated  "We are going to prepare a guide with examples for different initial states."   Has this been done, if so, where can I get a copy from ?

    Gary Freestone  


    ------------------------------
    Gary Freestone
    Systems Programmer
    Kyndryl Inc
    Mt Helen Australia
    ------------------------------
    Tatiana Balaburkina
    Rocketeer
    Oct 1, 2021 10:04 AM UTC
    @Tatiana Balaburkina

    In your post dated 2021-03-25 you stated  "We are going to prepare a guide with examples for different initial states."   Has this been done, if so, where can I get a copy from ?

    Gary Freestone  


    ------------------------------
    Gary Freestone
    Systems Programmer
    Kyndryl Inc
    Mt Helen Australia
    ------------------------------
    Hi Gary,
    We are working on the guide at the moment. We will announce as soon as it is ready. Thanks for your patience.

    ------------------------------
    Tatiana Balaburkina
    Rocket Internal - All Brands
    ------------------------------