unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#37232: git pull warns of http redirection
@ 2019-08-30  7:53 Bengt Richter
  2019-08-30  8:40 ` Gábor Boskovits
  2020-06-17  2:37 ` Royce Strange
  0 siblings, 2 replies; 4+ messages in thread
From: Bengt Richter @ 2019-08-30  7:53 UTC (permalink / raw)
  To: 37232

Hi all,

It seems to be working, but I like to
eliminate warnings ;-)

To reproduce, cd into your repo dir, then:

$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
$ git config -l
core.editor=emacs
user.name=Bengt Richter
user.email=bokr@bokr.com
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=http://git.sv.gnu.org/r/guix.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
$ git pull
warning: redirecting to http://git.savannah.gnu.org/r/guix.git/
Already up to date.
$

Is that http necessary for some load-balancing
redirection, or could it be done with https?

--== (the rest of this is ignorable context, FWIW :) ==--

I think I used the advice from guix 1.0.1 info
to do the initial clone, i.e.,
--advice
14.1 Building from Git

If you want to hack Guix itself, it is recommended to use the latest version from the Git repository: 

git clone https://git.savannah.gnu.org/git/guix.git
--advice--
(though my purpose was not use it for building, but to have the latest
and greatest to grep around in when trying to figure something out ;-)

uname -a:
Linux PhantoNv4ArchGx 5.2.9-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 16 11:29:43 UTC 2019 x86_64 GNU/Linux

guix describe:
Generation 11	Aug 25 2019 20:58:43	(current)
  guix a707484
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: a707484d64e7e46f8cb8401c660fbb6eb77ab9c6

(cd ~/wb/guix; git log|head):
commit 43412ab967ee00789fe933f916d804aed9961c57
Author: Tobias Geerinckx-Rice <me@tobias.gr>
Date:   Fri Aug 30 03:17:07 2019 +0200

    gnu: aqbanking: Update to 5.8.1.
    
    * gnu/packages/gnucash.scm (aqbanking): Update to 5.8.1.
    [source]: Remove FILE-NAME.

commit 521bb336782b8fe04b57ebaadd55be005a85d788

grep -m1 'model name' /proc/cpuinfo:
model name	: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz

--== (end of ignorable context, FWIW :) ==--

Regards,
Bengt Richter

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#37232: git pull warns of http redirection
  2019-08-30  7:53 bug#37232: git pull warns of http redirection Bengt Richter
@ 2019-08-30  8:40 ` Gábor Boskovits
  2019-08-30 10:25   ` Bengt Richter
  2020-06-17  2:37 ` Royce Strange
  1 sibling, 1 reply; 4+ messages in thread
From: Gábor Boskovits @ 2019-08-30  8:40 UTC (permalink / raw)
  To: Bengt Richter; +Cc: 37232

[-- Attachment #1: Type: text/plain, Size: 2842 bytes --]

Hello,

Bengt Richter <bokr@bokr.com> ezt írta (időpont: 2019. aug. 30., P, 9:54):

> Hi all,
>
> It seems to be working, but I like to
> eliminate warnings ;-)
>
> To reproduce, cd into your repo dir, then:
>
> $ git status
> On branch master
> Your branch is up to date with 'origin/master'.
>
> nothing to commit, working tree clean
> $ git config -l
> core.editor=emacs
> user.name=Bengt Richter
> user.email=bokr@bokr.com
> core.repositoryformatversion=0
> core.filemode=true
> core.bare=false
> core.logallrefupdates=true
> remote.origin.url=http://git.sv.gnu.org/r/guix.git


This line says, that you confgiured remote is git.sv.gnu.org ...


>
> remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
> branch.master.remote=origin
> branch.master.merge=refs/heads/master
> $ git pull
> warning: redirecting to http://git.savannah.gnu.org/r/guix.git/
> Already up to date.
> $
>

And this is the current url:

git clone https://git.savannah.gnu.org/git/guix.git

from

https://savannah.gnu.org/git/?group=guix



>
> Is that http necessary for some load-balancing
> redirection, or could it be done with https?
>
>
So https is fine.

You can try:
git remote set-url origin

https://git.savannah.gnu.org/git/guix.git


--== (the rest of this is ignorable context, FWIW :) ==--
>
> I think I used the advice from guix 1.0.1 info
> to do the initial clone, i.e.,
> --advice
> 14.1 Building from Git
>
> If you want to hack Guix itself, it is recommended to use the latest
> version from the Git repository:
>
> git clone https://git.savannah.gnu.org/git/guix.git
> --advice--
> (though my purpose was not use it for building, but to have the latest
> and greatest to grep around in when trying to figure something out ;-)
>
> uname -a:
> Linux PhantoNv4ArchGx 5.2.9-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 16
> 11:29:43 UTC 2019 x86_64 GNU/Linux
>
> guix describe:
> Generation 11   Aug 25 2019 20:58:43    (current)
>   guix a707484
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: a707484d64e7e46f8cb8401c660fbb6eb77ab9c6
>
> (cd ~/wb/guix; git log|head):
> commit 43412ab967ee00789fe933f916d804aed9961c57
> Author: Tobias Geerinckx-Rice <me@tobias.gr>
> Date:   Fri Aug 30 03:17:07 2019 +0200
>
>     gnu: aqbanking: Update to 5.8.1.
>
>     * gnu/packages/gnucash.scm (aqbanking): Update to 5.8.1.
>     [source]: Remove FILE-NAME.
>
> commit 521bb336782b8fe04b57ebaadd55be005a85d788
>
> grep -m1 'model name' /proc/cpuinfo:
> model name      : Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
>
> --== (end of ignorable context, FWIW :) ==--
>
> Regards,
> Bengt Richter
>
> Best regards,
g_bor


-- 
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21

[-- Attachment #2: Type: text/html, Size: 4780 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#37232: git pull warns of http redirection
  2019-08-30  8:40 ` Gábor Boskovits
@ 2019-08-30 10:25   ` Bengt Richter
  0 siblings, 0 replies; 4+ messages in thread
From: Bengt Richter @ 2019-08-30 10:25 UTC (permalink / raw)
  To: Gábor Boskovits; +Cc: 37232

On +2019-08-30 10:40:43 +0200, Gábor Boskovits wrote:
> Hello,
> 
> Bengt Richter <bokr@bokr.com> ezt írta (időpont: 2019. aug. 30., P, 9:54):
> 
> > Hi all,
> >
> > It seems to be working, but I like to
> > eliminate warnings ;-)
> >
> > To reproduce, cd into your repo dir, then:
[...]

> > $ git config -l
> > core.editor=emacs
> > user.name=Bengt Richter
> > user.email=bokr@bokr.com
> > core.repositoryformatversion=0
> > core.filemode=true
> > core.bare=false
> > core.logallrefupdates=true
> > remote.origin.url=http://git.sv.gnu.org/r/guix.git
> 
> 
> This line says, that you confgiured remote is git.sv.gnu.org ...
>
Yes, but AFAIK I only used git config to add my name, email, and
preferred editor. 
> 
> >
> > remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
> > branch.master.remote=origin
> > branch.master.merge=refs/heads/master
> > $ git pull
> > warning: redirecting to http://git.savannah.gnu.org/r/guix.git/
> > Already up to date.
> > $
> >
> 
> And this is the current url:
> 
> git clone https://git.savannah.gnu.org/git/guix.git
>

Is that how guix info docs should read now, unlike what I used
from there? I'll try it fresh into a new guix git repo ...

Aha! Now, right after cloning, I get this
from git config -l:

core.editor=emacs
user.name=Bengt Richter
user.email=bokr@bokr.com
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://git.savannah.gnu.org/git/guix.git
                  ^^^^^--joy :)

remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master

And: git pull does not warn about http redirection \o/ :-)

Thank you!

[...]

Regards,
Bengt Richter

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#37232: git pull warns of http redirection
  2019-08-30  7:53 bug#37232: git pull warns of http redirection Bengt Richter
  2019-08-30  8:40 ` Gábor Boskovits
@ 2020-06-17  2:37 ` Royce Strange
  1 sibling, 0 replies; 4+ messages in thread
From: Royce Strange @ 2020-06-17  2:37 UTC (permalink / raw)
  To: 37232-done

Hello.

Looks like Gábor Boskovits helped Bengt Richter resolve his issue.

Going to go ahead and close.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-06-17  2:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-30  7:53 bug#37232: git pull warns of http redirection Bengt Richter
2019-08-30  8:40 ` Gábor Boskovits
2019-08-30 10:25   ` Bengt Richter
2020-06-17  2:37 ` Royce Strange

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).