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

fast-import error: fatal: 'refs/heads/master' - not a valid ref

From
APAndrey Pavlenko <andrey.a.pavlenko@gmail.com>
Date
Aug 8, 2012, 07:25 UTC
Message-ID
<CAHSUVA5y1nZG69JbvC-wbmHhjyBGLx8Z2TM3htEyuCsWj=A+aw@mail.gmail.com>
Hi all,

I'm developing a remote helper which uses the fast-import stream for fetching. When I perform cloning git prints error message - "fatal: 'refs/heads/master' - not a valid ref", however the clonning completes normally. Each my fast-import commit command starts with "commit refs/heads/master" header.

What does this error message mean and how can I fix it?
Next: Jeff King
Message 1 of 4 in “fast-import error: fatal: 'refs/heads/master' - not a valid ref”
  1. Andrey PavlenkoAug 8, 2012
  2. Jeff KingAug 8, 2012
  3. Andrey PavlenkoAug 9, 2012
  4. Andrey PavlenkoAug 9, 2012

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.