# git repack throws -> error: unrecognized: ??

2 messages from 2005-12-24 to 2005-12-24. Participants: Duncan Mac Leod, Junio C Hamano.
Thread: https://gitlist.dev/t/2920

## Duncan Mac Leod, 2005-12-24 02:11

Subject: git repack throws -> error: unrecognized: ??
Message-ID: <43ACAE49.4000902@excelsior-online.org>
URL: https://gitlist.dev/e/43ACAE49.4000902%40excelsior-online.org

```
Hi!

I have done the following operations on my git repository...

duncan@firebird /var/git $ GIT_DIR=/var/git/myproject.git git fsck-objects
duncan@firebird /var/git $ GIT_DIR=/var/git/myproject.git git prune
duncan@firebird /var/git $ GIT_DIR=/var/git/myproject.git git count-objects
42 objects, 616 kilobytes
duncan@firebird /var/git $ GIT_DIR=/var/git/myproject.git git repack
Packing 42 objects
Pack pack-d715ebdf63391b054d9f058d59d3d3a4f6f2a12c created.
error: unrecognized:

The last one throws 'error: unrecognized:' - what does this mean?

Under which circumstances is this error message fired?

Did my git repository get corrupted?

...and 'HAPPY HOLIDAYS' to all of you!

Duncan

```

## Junio C Hamano, 2005-12-24 03:16

Subject: Re: git repack throws -> error: unrecognized: ??
Message-ID: <7v4q4z4222.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v4q4z4222.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <43ACAE49.4000902@excelsior-online.org>

```
Duncan Mac Leod <duncan@excelsior-online.org> writes:

> The last one throws 'error: unrecognized:' - what does this mean?
>
> Under which circumstances is this error message fired?
>
> Did my git repository get corrupted?

No.  But you are running GIT before 1.0.0b.

Namely, this commit is needed to squelch the error message:

    commit 8ac4838af428a2a32498b3e8d13295eb714654b4
    Author: Junio C Hamano <junkio@cox.net>
    Date:   Wed Dec 21 13:48:47 2005 -0800

        server-info: skip empty lines.

        Now we allow an empty line in objects/info/packs file, recognize
        that and stop complaining.

        Signed-off-by: Junio C Hamano <junkio@cox.net>

```
