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

4 messages from 2012-08-08 to 2012-08-09. Participants: Andrey Pavlenko, Jeff King.
Thread: https://gitlist.dev/t/31206

## Andrey Pavlenko, 2012-08-08 07:25

Subject: fast-import error: fatal: 'refs/heads/master' - not a valid ref
Message-ID: <CAHSUVA5y1nZG69JbvC-wbmHhjyBGLx8Z2TM3htEyuCsWj=A+aw@mail.gmail.com>
URL: https://gitlist.dev/e/CAHSUVA5y1nZG69JbvC-wbmHhjyBGLx8Z2TM3htEyuCsWj%3DA%2Baw%40mail.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?

```

## Jeff King, 2012-08-08 17:54

Subject: Re: fast-import error: fatal: 'refs/heads/master' - not a valid ref
Message-ID: <20120808175433.GA12772@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20120808175433.GA12772%40sigill.intra.peff.net
In-Reply-To: <CAHSUVA5y1nZG69JbvC-wbmHhjyBGLx8Z2TM3htEyuCsWj=A+aw@mail.gmail.com>

```
On Wed, Aug 08, 2012 at 11:25:02AM +0400, Andrey Pavlenko wrote:

> 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?

What version of git are you using? The only command which produces that
exact message is "git show-ref", and it is not called by current
versions of the cloning process (but it used to be in old versions).

-Peff

```

## Andrey Pavlenko, 2012-08-09 08:22

Subject: Re: fast-import error: fatal: 'refs/heads/master' - not a valid ref
Message-ID: <CAHSUVA4muWPh7jYNJNsPP4=_g0z98QQmz6fzraVkKfyDgE_rcw@mail.gmail.com>
URL: https://gitlist.dev/e/CAHSUVA4muWPh7jYNJNsPP4%3D_g0z98QQmz6fzraVkKfyDgE_rcw%40mail.gmail.com
In-Reply-To: <20120808175433.GA12772@sigill.intra.peff.net>

```
git --version
git version 1.7.11.3

On Wed, Aug 8, 2012 at 9:54 PM, Jeff King <peff@peff.net> wrote:
> On Wed, Aug 08, 2012 at 11:25:02AM +0400, Andrey Pavlenko wrote:
>
>> 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?
>
> What version of git are you using? The only command which produces that
> exact message is "git show-ref", and it is not called by current
> versions of the cloning process (but it used to be in old versions).
>
> -Peff

```

## Andrey Pavlenko, 2012-08-09 08:42

Subject: Re: fast-import error: fatal: 'refs/heads/master' - not a valid ref
Message-ID: <CAHSUVA5hUODLyqL=nqzSuJxBMrWNZeJmLp2+HwJKVN7DU8HPQg@mail.gmail.com>
URL: https://gitlist.dev/e/CAHSUVA5hUODLyqL%3DnqzSuJxBMrWNZeJmLp2%2BHwJKVN7DU8HPQg%40mail.gmail.com
In-Reply-To: <CAHSUVA4muWPh7jYNJNsPP4=_g0z98QQmz6fzraVkKfyDgE_rcw@mail.gmail.com>

```
My helper really executes git show-ref before writting the export stream...
Thank you for pointing that out and sorry for disturbing.

On Thu, Aug 9, 2012 at 12:22 PM, Andrey Pavlenko
<andrey.a.pavlenko@gmail.com> wrote:
> git --version
> git version 1.7.11.3
>
> On Wed, Aug 8, 2012 at 9:54 PM, Jeff King <peff@peff.net> wrote:
>> On Wed, Aug 08, 2012 at 11:25:02AM +0400, Andrey Pavlenko wrote:
>>
>>> 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?
>>
>> What version of git are you using? The only command which produces that
>> exact message is "git show-ref", and it is not called by current
>> versions of the cloning process (but it used to be in old versions).
>>
>> -Peff

```
