Hi,
I was experimenting with tags today, and seems like switching to a tag view broke my repository. Now, even git status
gives me an error, output:
...vi.srt: File name too long
nothing to commit, working tree clean
On branch views/main(tag=_)
Before that I ran git annex view tag=*
.
What I'm thinking is that before switching to a tag view file name/path was fine, but during switching seems like git annex transformed the file name which exceeds the max file path.
For ZFS those limits are:
getconf NAME_MAX /pool-name
255
getconf PATH_MAX /pool-name
4096
Steps to reproduce:
- create a file in a directory with a long path
- create a tag
- switch to a tag
for example, here is one of the errors:
sizeďą•huge/02_getting-a-handle-on-vectors_%knowledge-storages%courses%authorities%coursera%linear-algebra-machine-learning%01_introduction-to-linear-algebra-and-to-mathematics-for-machine-learning%02_the-relationship-between-machine-learning-linear-algebra-and-vectors-and%.pl.srt: File name too long
I've tried the following commands, but due to this error nothing changes:
git annex vpop
< says "git-annex: Not in a view."git checkout main
< does nothing, stays "On branch views/main(tag=_)"git restore .
< does nothing, stays "On branch views/main(tag=_)"
Is there anything can be done to at least go back to the main branch and clear the error?
Hi,
Seem like I've managed to fix it by openning
.git/HEAD
file with VIM, and then changing:to this:
Saved the file, then ran
git stash --all
. Which returned the repo to the original state.Also before
git stash --all
, I rangit restore .
git annex fsck
, andgit add -A
but those didn't change anything.