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

Re: error with symlinks on OSX

From
Seth Falcon <sethfalcon@gmail.com>
Date
Mar 15, 2007, 22:19 UTC
Message-ID
<m2wt1i6tfk.fsf@ziti.local>
In-Reply-To
<20070315194410.GC29547@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 8 quoted lines
> Seth Falcon <sethfalcon@gmail.com> wrote:
>> error: git-checkout-index: unable to create symlink Category/Makefile (Invalid argument)
>> 
>> Now while my file system isn't smart enough to tell the difference
>> between t and T, it does support symlinks AFAIK.
>
> Yes, it does support symlinks.  Is it possible that the name Category
> already existed, but as a file?  Hmm.

I think in the revision before the update, there was a file Category/Makefile and that it was replaced by a symlink.

So Category is/was a dir. Category/Makefile was a file and became a symlink. Note that I am using git-svn to track an svn repository and so the problem could be there.

However, I'm not sure where to look or what experiment to try next.

If I checkout an old revision prior to the file becoming a symlink and then checkout master, I get:

git checkout -b foobar 74227bbd35a77b8 Switched to a new branch "foobar" git checkout master D Category/Makefile [...snip...] D vsn/Makefile Switched to branch "master"

git reset --hard HEAD error: git-checkout-index: unable to create symlink Category/Makefile (Invalid argument) [...snip...] error: git-checkout-index: unable to create symlink vsn/Makefile (Invalid argument) HEAD is now at 30bd65d... the commit msg here

-- 
Seth
Previous: Shawn O. Pearce
Message 3 of 3 in “error with symlinks on OSX”
  1. Seth FalconMar 15, 2007
  2. Shawn O. PearceMar 15, 2007
  3. Seth FalconMar 15, 2007

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.