z/OS Tools & Language

Expand all | Collapse all

Using GIT client with Bitbucket by Atlassian

  • 1.  Using GIT client with Bitbucket by Atlassian

    Posted 02-04-2019 12:00

    Hi,

    We have installed GIT and the corequisite products for z/OS

    we are running version 2.12.0
    bash-4.3$ git --version
    git version 2.12.0

    It appears that I can create a local repo and it works ok, I can add code to it and it appears to track changes. But whenever I try to pull code from the Remote Repo I get the following error.

    bash-4.3$ git clone nbkbjwz@horizon.bankofamerica.com/scm/scm/bcc/bcc.git" rel="nofollow noopener">https://nbkbjwz@horizon.bankofamerica.com/scm/scm/bcc/bcc.git
    Cloning into ‘bcc’…
    fatal: bad config line 1 in file /u/user/nbkbjwz/test9/bcc/.git/config

    I believe the problem is related to the Bitbucket repo using UTF-8 we have all parameters set correctly and the Bash environment is established when we login to SSH. Using booth the profile and bash RC scripts.

    bash-4.3$ set
    BASH=/bac/usr/BOFA/git/bin/bash
    BASHOPTS=cmdhist:complete_fullquote:expand_aliases:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
    BASH_ALIASES=()
    BASH_ARGC=()
    BASH_ARGV=()
    BASH_CMDS=()
    BASH_LINENO=()
    BASH_SOURCE=()
    BASH_VERSINFO=([0]=“4” [1]=“3” [2]=“46” [3]=“51” [4]=“release” [5]=“i370-ibm-openedition”)
    BASH_VERSION=‘4.3.46(51)-release’
    COLUMNS=237
    DIRSTACK=()
    EUID=30030923
    FFI_LIB=/bac/usr/BOFA/git/download/python-2017-04-12-py27/python27/lib/ffi
    GIT_EXEC_PATH=/bac/usr/BOFA/git/libexec/git-core
    GIT_MAN_PATH=/bac/usr/BOFA/git/man
    GIT_SHELL=/bac/usr/BOFA/git/bin/bash
    GIT_TEMPLATE_DIR=/bac/usr/BOFA/git/share/git-core/templates
    GROUPS=()
    HISTFILE=/u/user/nbkbjwz/.bash_history
    HISTFILESIZE=500
    HISTSIZE=500
    HOME=/u/user/nbkbjwz
    HOSTNAME=MD02
    HOSTTYPE=i370
    IFS=$’ \t\n’
    JAVA_HOME=/java31
    LANG=C
    LIBPATH=/bac/usr/BOFA/git/download/python-2017-04-12-py27/python27/lib:/bac/usr/BOFA/git/lib/perl5/5.24.0/os390/CORE:/usr/lib:.:/java31/lib:/usr/lpp/perl/lib/5.8.7/os390-thread-multi/CORE
    LINES=64
    LOGNAME=NBKBJWZ
    MACHTYPE=i370-ibm-openedition
    MAIL=/usr/mail/NBKBJWZ
    MAILCHECK=60
    MANPATH=/bac/usr/BOFA/git/man:/usr/man/%L:/usr/lpp/perl/man/C/man1
    NLSPATH=/usr/lib/nls/msg/C/%N:/usr/lib/nls/msg/%L/%N.cat
    OLDPWD=/u/user/nbkbjwz
    OPTERR=1
    OPTIND=1
    OSTYPE=openedition
    PATH=/bac/usr/BOFA/git/download/python-2017-04-12-py27/python27/bin:/bac/usr/BOFA/git/bin:/bin:/usr/lpp/gskssl/bin:.:/java31/bin:/usr/lpp/psf/local:/usr/lpp/psf/bin
    PERL5LIB=/bac/usr/BOFA/git/lib/perl5:
    PIPESTATUS=([0]=“128”)
    PKG_CONFIG_PATH=/bac/usr/BOFA/git/download/python-2017-04-12-py27/python27/lib/pkgconfig:/bac/usr/BOFA/git/download/python-2017-04-12-py27/python27/share/pkgconfig
    PPID=84083502
    PS1=’\s-\v$ ’
    PS2=’> ’
    PS4=’+ ’
    PWD=/u/user/nbkbjwz/test9
    PYTHON_ENV=python27
    PYTHON_HOME=/bac/usr/BOFA/git/download/python-2017-04-12-py27/python27
    RELEASE_DIR=/bac/usr/BOFA/git/download/python-2017-04-12-py27
    RELEASE_NAME=python-2017-04-12
    RELEASE_TYPE=py27
    RLSE_HOME=/opt/rlse
    SHELL=/bin/sh
    SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
    SHLVL=1
    SSH_CLIENT=‘30.201.39.182 53853 22’
    SSH_CONNECTION=‘30.201.39.182 53853 171.186.5.102 22’
    SSH_TTY=/dev/ttyp0000
    STEPLIB=NONE
    TERM=xterm
    TERMINFO=/bac/usr/BOFA/git/download/python-2017-04-12-py27/python27/share/terminfo
    TZ=EST5EDT
    UID=30030923
    USER=NBKBJWZ
    VIM=/bac/usr/BOFA/git/share/vim
    _=https://nbkbjwz@horizon.bankofamerica.com/scm/scm/bcc/bcc.git
    _BPXK_AUTOCVT=ALL
    _BPX_SHAREAS=YES
    _BPX_SPAWN_SCRIPT=YES
    _C89_CLIB_PREFIX=SYS1
    _C89_CMSGS=EDCMSGE
    _C89_PLIB_PREFIX=SYS1
    _C89_PMSGS=EDCPMSGE
    _C89_SLIB_PREFIX=SYS1
    _C89_WORK_UNIT=SYSDA
    _CC_CLIB_PREFIX=SYS1
    _CC_CMSGS=EDCMSGE
    _CC_PLIB_PREFIX=SYS1
    _CC_PMSGS=EDCPMSGE
    _CC_SLIB_PREFIX=SYS1
    _CC_WORK_UNIT=SYSDA
    _CEE_RUNOPTS=‘FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)’
    _CXX_CLASSLIB_PREFIX=SYS1
    _CXX_CLIB_PREFIX=SYS1
    _CXX_PLIB_PREFIX=SYS1
    _CXX_SLIB_PREFIX=SYS1
    _CXX_WORK_UNIT=SYSDA
    _TAG_REDIR_ERR=txt
    _TAG_REDIR_IN=txt
    _TAG_REDIR_OUT=txt
    _TZ=EST5EDT

    Please let me know if you need anymore information
    -Thanks Phil Pinto
    Bank of America



  • 2.  RE: Using GIT client with Bitbucket by Atlassian

    Posted 02-05-2019 17:02

    Hi,
    Where did you get git 2.12.0? If you installed it from a bunch of packages delivered with python, I would recommend you to install another version: git 2.14.4. This version as available as a separate package in Rocket Community Portal.



  • 3.  RE: Using GIT client with Bitbucket by Atlassian

    Posted 02-05-2019 17:22

    Hi Tatyana,

    Thanks for the reply, It came from Rocket. - 2.14.4 is what’s listed in the package, however after we install it ask what version it is, it comes back with 2.12.0 , could we have a bad package?



  • 4.  RE: Using GIT client with Bitbucket by Atlassian

    Posted 02-05-2019 17:23

    If you type:

    type git

    bash will tell you where in your path git is coming from.



  • 5.  RE: Using GIT client with Bitbucket by Atlassian

    Posted 02-05-2019 17:43

    Hi jcallen,

    Now I feel stupid, yes there was another GIT version in the python directory, now getting another error, could be a permission issue. Trying

    bash-4.3$ git clone ssh://git@horizon.bankofamerica.com/bcc/bcc.git
    Cloning into ‘bcc’…
    FOTS1373 Permission denied (publickey).
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.

    -Phil



  • 6.  RE: Using GIT client with Bitbucket by Atlassian

    Posted 02-05-2019 17:45

    It is not a problem of ported git. You need to set up SSH key. Look here.



  • 7.  RE: Using GIT client with Bitbucket by Atlassian

    Posted 02-05-2019 17:48

    Thanks Tatyana,

    I need to recreate the key for SSH, I also tried HTTP we are using bit bucket needed to do

    git config --global http.sslVerify false

    for that to work, it works now. I am able to clone the repo.

    Thank you so much.
    -Phil