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

error: * Ignoring funny ref 'refs/heads/' locally

From
Jon Seymour <jon.seymour@gmail.com>
Date
Jun 17, 2009, 12:08 UTC
Message-ID
<2cfc40320906170508o4fc0fc14sca511742be03ee5@mail.gmail.com>
Can someone tell me why this happens?
    error: * Ignoring funny ref 'refs/heads/' locally
It also happens with 1.6.3.1
$ mkdir root
$ cd root
$ git init
Initialized empty Git repository in /tmp/root/.git/
$ :> .gitignore
$ git add .gitignore
$ git commit -m "initial"
Created initial commit 6a7c768: initial
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 .gitignore
$ cd ..
$ git clone root clone
Initialized empty Git repository in /tmp/clone/.git/
$ cd clone
$ git fetch origin :
error: * Ignoring funny ref 'refs/heads/' locally
$ git --version
git version 1.6.0.4
$ exit
Next: Clemens Buchacher
Message 1 of 2 in “error: * Ignoring funny ref 'refs/heads/' locally”
  1. Jon SeymourJun 17, 2009
  2. fetch: do not create ref from empty nameClemens Buchacher, Jun 17, 2009

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.