threads / discuss / 7260

error with symlinks on OSX

Subject: error with symlinks on OSX

## tl;dr

3 messages between Mar 15, 2007 and Mar 15, 2007.

replies: 2people: 2as markdown or json

Seth Falcon· Mar 15, 2007, 17:12 UTC · lore
Hi,

I've been tracking an svn repository using git-svn and today when I did:

   git svn rebase
   (which is equivalent to git svn fetch && git rebase
   remotes/git-svn)
I got errors like this:
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.

git version 1.5.0.2.293.g102a0
I can provide more info if it would help.
+ seth
Shawn O. Pearce· Mar 15, 2007, 19:44 UTC · re: Seth Falcon · lore

Re: error with symlinks on OSX

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.
 
-- 
Shawn.
Seth Falcon· Mar 15, 2007, 22:19 UTC · re: Shawn O. Pearce · lore

Re: error with symlinks on OSX

"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

← back to recent threads