Task #9681

Get newer git for natasha_devel role so I can push to github

Added by Natalia Ratnikova over 5 years ago. Updated over 5 years ago.

Start date:
Due date:
% Done:


Estimated time:
1.00 h
Spent time:


git 1.7.4 on SLF5 will ask for a userid/pwd and push to github; on SLF6 git 1.7.1 is default, and it fails to push to https github server.
This blocks moving development from cmssrv158 onto cmsdev33.

Tim has a recipe to install git 1.9.x on cmsadmin1 that can be puppetized into natasha_dev role.
The rpm is already avalailable somewhere in the existing repos (need to check/confirm).


#1 Updated by Natalia Ratnikova over 5 years ago

  • % Done changed from 0 to 100
  • Estimated time set to 1.00 h

[root@cmsadmin1 ~]# for p in `rpm -qa | grep git19`; do rpm -ql $p; done | grep /git$
[root@cmsadmin1 ~]# rpm -qf /opt/rh/git19/root/usr/bin/git
[root@cmsadmin1 ~]# yum list git19-git
Loaded plugins: priorities, security
541 packages excluded due to repository priority protections
Installed Packages
git19-git.x86_64 1.9.4-2.el6 @slf-collections


[cmsdev33 17:18] git status
  1. On branch master
  2. Your branch is ahead of 'origin/master' by 1 commit. #
    nothing to commit (working directory clean)
    [cmsdev33 17:18] git push
    error: The requested URL returned error: 403 Forbidden while accessing

fatal: HTTP request failed
[cmsdev33 17:18] git19 push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

git config --global push.default simple

When push.default is set to 'matching', git will push local branches
to the remote branches that already exist with the same name.

In Git 2.0, Git will default to the more conservative 'simple'
behavior, which only pushes the current branch to the corresponding
remote branch that 'git pull' uses to update the current branch.

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Username for '': nataliaratnikova
Password for 'https://':
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 561 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
9d1d0d8..c8bac18 master -> master
[cmsdev33 17:18] pwd
[cmsdev33 17:18]

#2 Updated by Natalia Ratnikova over 5 years ago

  • Status changed from Assigned to Resolved

All done, tested and works.
Also merged in the itb recent changes into natalia_devel branch.

Also available in: Atom PDF