git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Get rid of `warning: refs/remotes/origin/master usually tracks  refs/heads/master, not refs/remotes/origin/master`
@ 2023-02-23  3:21 Andry
  2023-02-25 21:48 ` Andry
  0 siblings, 1 reply; 2+ messages in thread
From: Andry @ 2023-02-23  3:21 UTC (permalink / raw)
  To: git

Hello Git,

Found this issue and could find a solution.

Repro steps:

1. create a simple repo with only the master branch.
2. `git pull origin *:*` to allocate all refs (no warnings)

If try to mirror the repo into the same remote:

1. `git push origin --mirror`

Then the remote counter part falls into the mirror state and reports the warning:

1. `git pull origin *:*`

```
warning: refs/remotes/origin/master usually tracks refs/heads/master, not refs/remotes/origin/master
Already up to date.
```

Tried to delete all refs in the local and remote. But didn't work. Somehow the remove remember the state.

Is there a way to unmirror the remote repository back?


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

end of thread, other threads:[~2023-02-25 21:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-23  3:21 Get rid of `warning: refs/remotes/origin/master usually tracks refs/heads/master, not refs/remotes/origin/master` Andry
2023-02-25 21:48 ` Andry

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 NNTP newsgroup(s).