git/list[1] front-page[2] threads[3] people[4] search[5] about
 

.git/config validations by (for silly errors) by git fsck

From
PDPalauzov, Dilyan <dilyan.palauzov@sit-extern.fraunhofer.de>
Date
May 6, 2019, 18:19 UTC
Message-ID
<36d37bdd70fba719ecee2c5572a8b85bc9940944.camel@sit-extern.fraunhofer.de>
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
  Дилян
Next: Ævar Arnfjörð Bjarmason
Message 1 of 2 in “.git/config validations by (for silly errors) by git fsck”
  1. Palauzov, DilyanMay 6, 2019
  2. Ævar Arnfjörð BjarmasonMay 6, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.