From: Andry <andry@inbox.ru>
To: git@vger.kernel.org
Subject: Get rid of `warning: refs/remotes/origin/master usually tracks refs/heads/master, not refs/remotes/origin/master`
Date: Thu, 23 Feb 2023 06:21:01 +0300 [thread overview]
Message-ID: <942870379.20230223062101@inbox.ru> (raw)
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?
next reply other threads:[~2023-02-23 3:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-23 3:21 Andry [this message]
2023-02-25 21:48 ` Get rid of `warning: refs/remotes/origin/master usually tracks refs/heads/master, not refs/remotes/origin/master` Andry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=942870379.20230223062101@inbox.ru \
--to=andry@inbox.ru \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).