Web lists-archives.com

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




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

Attachment: signature.asc
Description: PGP signature