z/OS Tools & Language

Expand all | Collapse all

Git fatal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory

  • 1.  Git fatal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory

    Posted 09-28-2017 12:59

    A user tried to use this command:
    $ git config --system --edit
    fatal: Could not switch to ‘/rsusr/rocket/etc/’: EDC5129I No such file or directory.

    Did I miss a configuration item during the install? I didn’t see anything in the zOS git Release Notes.pdf.

    These commands work properly:
    git config --global --edit and git config --local --edit

    Thanks.



  • 2.  RE: Git fatal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory

    Posted 09-29-2017 06:13

    Hi,

    We recommend to install Vim and make this setting:

    git config --glob core.editor “vim”



  • 3.  RE: Git fatal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory

    Posted 09-29-2017 12:33

    Hi,
    We are using this: core.editor=/bin/vi -W filecodeset=ISO8859-1 which is set from the git config --global core.editor “/bin/vi -W filecodeset=ISO8859-1” command.

    From the first time Git setup…
    /etc/gitconfig file: Contains values for every user on the system and all their repositories. If you pass the option --system to git config, it reads and writes from this file specifically.

    How do I configure Git on z/OS to use my system config file? (/myrocketdir/gitconfig)

    I read this but couldn’t determine what the resolution was.

    Thanks



  • 4.  RE: Git fatal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory

    Posted 10-03-2017 07:47

    Hi,

    As I know, there is no way to change the path to system config.
    Thank for reporting. We have found an issue related with system config.



  • 5.  RE: Git fatal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory

    Posted 10-03-2017 07:48

    Internal ticket



  • 6.  RE: Git fatal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory

    Posted 10-03-2017 09:57

    I tried setting the environment variable GIT_CONFIG_NOSYSTEM which is supposed to skip reading the settings from the system-wide $(prefix)/etc/gitconfig file but it didn’t work.

    Thanks.