Project

General

Profile

Task #9681

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

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

Status:
Resolved
Priority:
High
Start date:
07/21/2015
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:
Duration:

Description

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).

History

#1 Updated by Natalia Ratnikova over 4 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$
/opt/rh/git19/root/etc/bash_completion.d/git
/opt/rh/git19/root/usr/bin/git
/opt/rh/git19/root/usr/libexec/git-core/git
/opt/rh/git19/root/usr/share/doc/git19-git-1.9.4/contrib/mw-to-git/bin-wrapper/git
[root@cmsadmin1 ~]# rpm -qf /opt/rh/git19/root/usr/bin/git
git19-git-1.9.4-2.el6.x86_64
[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 https://github.com/nataliaratnikova/dcache-scripts/info/refs

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 'https://github.com': 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)
To https://github.com/nataliaratnikova/dcache-scripts
9d1d0d8..c8bac18 master -> master
[cmsdev33 17:18] pwd
/storage/local/data1/home/natasha/work/DCACHE/Support_8828/dcache-scripts
[cmsdev33 17:18]

#2 Updated by Natalia Ratnikova over 4 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