Symbolic links create dirty state from git.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I cloned a repo from another with symbolic links.  Now the symbolic links 
appear as modified files, and nor resetting, nor committing, nor ignoring, 
nor `rm --cache`ing will take them out of their dirty state.  

If I try to commit them, I get

error: readlink("lib/systems/asdf-system-connections.asd"): Invalid argument
fatal: unable to index file lib/systems/asdf-system-connections.asd

The link, however, is fine: it points to a valid, existing file, which I can 
read through the link.  It is a relative link pointing to another file which
is also tracked by the repo.  The links have not changed.

I have added these files to .gitignore, but git doesn't.

I can switch to another branch with regular git-checkout <branch>, and these 
no longer appear in the index while in that branch. When I switch back, they
show up again.

When I look at these in git-gui, it tells me that it can find no differences,
and tries to remove it from them index, but it pops right back into 
"Unstaged Changes".

The times on all of the symlinks are today's.  Is this why git thinks they have
changed?

Now, I'm stuck.  Can anyone tell me how I might get these out of the way?

git version 1.5.4.rc2.417.g3d51e
Linux dra00594 2.6.20-16-generic #2 SMP Tue Feb 12 05:41:34 UTC 2008 i686 GNU/Linux


Thanks,

Tim S.
��.n��������+%������w��{.n��������n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�m


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux