Skip to content

Trailing slash on "init" confuses attic #297

@SpiritQuaddicted

Description

@SpiritQuaddicted

Mind the trailing slashes in this. It all would have worked fine if I had initially left it off but it seems that attic itself gets confused. Not sure what the behaviour should be but when I posted it to IRC earlier, it was suggested to post as bug here.

$ attic init /mnt/hdd/atticbk/
Initializing repository at "/mnt/hdd/atticbk/"

$ attic create /mnt/hdd/atticbk::`date +%Y-%m-%d_%H%M%S` /home/me/somedir
Warning: The repository at location /mnt/hdd/atticbk was previously located at /mnt/hdd/atticbk/
attic: Error: Repository access aborted

$ attic init /mnt/hdd/atticbk
Initializing repository at "/mnt/hdd/atticbk"
attic: Error: Repository /mnt/hdd/atticbk already exists

$ attic create /mnt/hdd/atticbk/::`date +%Y-%m-%d_%H%M%S` /home/me/somedir
this works fine

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