Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long tag chain does not work (anymore) #40

Open
sloonz opened this issue Dec 27, 2017 · 0 comments
Open

Long tag chain does not work (anymore) #40

sloonz opened this issue Dec 27, 2017 · 0 comments

Comments

@sloonz
Copy link

sloonz commented Dec 27, 2017

Inserting an object with many tags using long tag chains (tag1/tag2/tags3/.../@) does not work anymore (worked in 0.8.1)

This scripts shows the problem : it creates 100 tags in an empty repository and then try to copy a file in tag1/tag2/tag3/.../@. It fails (expected results: "hello")

#!/bin/zsh

set -x

[ ! -d /tmp/tsbug/files ] && mkdir -p /tmp/tsbug/files
echo hello > /tmp/tsbug/test
[ -d /tmp/tsbug/files/tags ] && { fusermount -u /tmp/tsbug/files || exit 2 }
rm -rf /tmp/tsbug/repository
~/tmp/Tagsistant/src/tagsistant --repository=/tmp/tsbug/repository /tmp/tsbug/files >/dev/null || exit 1
sleep 1

p=
for i in $(seq 100) ; do
        mkdir /tmp/tsbug/files/tags/test$i || exit 1
        if [ "$p" != "" ] ; then
                p=$p"/test"$i
        else
                p=test$i
        fi
done

cp /tmp/tsbug/test /tmp/tsbug/files/store/$p/@
cat /tmp/tsbug/files/store/$p/@/test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant