Skip to content

Long tag chain does not work (anymore) #40

Description

@sloonz

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions