git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* .git/config validations by (for silly errors) by git fsck
@ 2019-05-06 18:19 Palauzov, Dilyan
  2019-05-06 23:31 ` Ævar Arnfjörð Bjarmason
  0 siblings, 1 reply; 2+ messages in thread
From: Palauzov, Dilyan @ 2019-05-06 18:19 UTC (permalink / raw)
  To: git@vger.kernel.org

Hello,

I added manually a remote to .git/config, but updated only the url= line, forgetting to update the fetch= line.  So two
remotes had
  fetch = +refs/heads/*:refs/remotes/origin/*

and fetching from the one or the other has overwritten origin/master.  git fsck has not helped.

Please introduce a check in git fcsk that triggers, when two different remotes share the same fetch line, or if the
fetch line does not reference the remote name.

Regards
  Дилян

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

end of thread, other threads:[~2019-05-06 23:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-06 18:19 .git/config validations by (for silly errors) by git fsck Palauzov, Dilyan
2019-05-06 23:31 ` Ævar Arnfjörð Bjarmason

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

	https://80x24.org/mirrors/git.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).