Thread (2 messages) 2 messages, 1 author, 2023-02-25

Re: Get rid of `warning: refs/remotes/origin/master usually tracks refs/heads/master, not refs/remotes/origin/master`

From: Andry <hidden>
Date: 2023-02-25 21:46:20

Hello Git,



Thursday, February 23, 2023, 6:21:01 AM, you wrote:

A> Found this issue and could find a solution.

A> ...

A> Is there a way to unmirror the remote repository back?

Seems the problem was in the logic of the push algorithm.

There was 2 fors (pseudocode):
for remote in remotes:
  for branch in branches:
    git_push([remote, ':refs/remotes/' + remote + '/' + branch])
Instead of 3 fors:
for remote in remotes:
  for ref_remote in remotes:
    for branch in branches:
      git_push([remote, ':refs/remotes/' + ref_remote + '/' + branch])
Because each remote has `num(refs) = num(branches) x num(remotes)` after the mirror.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help