# What is “unable to open object pack directory: .git/objects/pack: Not a directory” error?

2 messages from 2019-01-30 to 2019-02-05. Participants: Alireza Alipour, brian m. carlson.
Thread: https://gitlist.dev/t/50363

## Alireza Alipour, 2019-01-30 18:36

Subject: What is “unable to open object pack directory: .git/objects/pack: Not a directory” error?
Message-ID: <CAOYf8At-gCD-Ctm9RevPLSkrfo+B0fj8oXtC1uzxAcntPp9ggA@mail.gmail.com>
URL: https://gitlist.dev/e/CAOYf8At-gCD-Ctm9RevPLSkrfo%2BB0fj8oXtC1uzxAcntPp9ggA%40mail.gmail.com

```
Hi everyone

I have asked this question in Super User but I have not got answer. I
have described details in the my question__ link in available in
bottom__ but for more information I add following info:

I checked one of my past projects and I notice that
".git/objects/pack" directory exist but there is not anything in it.
Now I want to know that what is causes of this problem? And what is
work around for this problem? And also I want to know that can I
continue to commit on my current project and push it on my GitHub
repository without any problems?

My question link on Super User: https://superuser.com/q/1398971/660238


Kind regards,
Alireza Alipour

```

## brian m. carlson, 2019-02-05 01:40

Subject: Re: What is “unable to open object pack directory: .git/objects/pack: Not a directory” error?
Message-ID: <20190205014043.GA527887@genre.crustytoothpaste.net>
URL: https://gitlist.dev/e/20190205014043.GA527887%40genre.crustytoothpaste.net
In-Reply-To: <CAOYf8At-gCD-Ctm9RevPLSkrfo+B0fj8oXtC1uzxAcntPp9ggA@mail.gmail.com>

```
On Wed, Jan 30, 2019 at 10:06:05PM +0330, Alireza Alipour wrote:
> Hi everyone
> 
> I have asked this question in Super User but I have not got answer. I
> have described details in the my question__ link in available in
> bottom__ but for more information I add following info:
> 
> I checked one of my past projects and I notice that
> ".git/objects/pack" directory exist but there is not anything in it.
> Now I want to know that what is causes of this problem? And what is
> work around for this problem? And also I want to know that can I
> continue to commit on my current project and push it on my GitHub
> repository without any problems?

Can you tell us what `ls -lF .git/objects/pack` produces? It should be a
directory, but it's not for some reason.

If it doesn't look like anything useful, you can remove the file or
symlink there if there is one, and run "git init", and things should be
fixed.
-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204

```
