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

Re: recent change in git.git/master broke my repos

From
Jeff King <peff@peff.net>
Date
Oct 25, 2007, 15:51 UTC
Message-ID
<20071025155142.GB19655@coredump.intra.peff.net>
In-Reply-To
<86oden6z97.fsf@blue.stonehenge.com>
On Thu, Oct 25, 2007 at 07:32:36AM -0700, Randal L. Schwartz wrote:
Show 15 quoted lines
> I have echo "ref: refs/remotes/origin/master" >.git/refs/heads/upstream
> so that my daily update script can go:
> 
>    git-fetch
>    if [ repo is on master, and is not dirty ];
>       git-merge upstream
>    fi
> 
> Yesterday that worked.
> 
> Today I get a rash of:
> 
>   fatal: Couldn't find remote ref refs/remotes/origin/master
> 
> from my git-fetch.

Works fine here (meaning I can examine 'upstream' as I would any other branch, and it points to the same place as origin/master).

Why is git-fetch touching your upstream branch at all? Do you have something in your .git/config instructing it to do so? Or do you mean that the 'git-merge upstream' command is failing? Can you 'git-show upstream'? If not, can you 'git-show origin/master'?

-Peff
Previous: Karl HasselströmNext: Randal L. Schwartz
Message 9 of 18 in “recent change in git.git/master broke my repos”
  1. Randal L. SchwartzOct 25, 2007
  2. Karl HasselströmOct 25, 2007
  3. Nicolas PitreOct 25, 2007
  4. Randal L. SchwartzOct 25, 2007
  5. Andreas EricssonOct 25, 2007
  6. Nicolas PitreOct 25, 2007
  7. Andreas EricssonOct 25, 2007
  8. Karl HasselströmOct 26, 2007
  9. Jeff KingOct 25, 2007
  10. Randal L. SchwartzOct 25, 2007
  11. Jeff KingOct 25, 2007
  12. Randal L. SchwartzOct 25, 2007
  13. Jeff KingOct 25, 2007
  14. Randal L. SchwartzOct 25, 2007
  15. Jeff KingOct 25, 2007
  16. Daniel BarkalowOct 25, 2007
  17. Junio C HamanoOct 27, 2007
  18. Daniel BarkalowOct 27, 2007

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.