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

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

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Feb 5, 2019, 01:40 UTC
Message-ID
<20190205014043.GA527887@genre.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:
Show 12 quoted lines
> 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
Previous: Alireza Alipour
Message 2 of 2 in “What is “unable to open object pack directory: .git/objects/pack: Not a directory” error?”
  1. Alireza AlipourJan 30, 2019
  2. brian m. carlsonFeb 5, 2019

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.