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

Trailing slash on "init" confuses attic #297

Open
SpiritQuaddicted opened this issue Apr 26, 2015 · 2 comments
Open

Trailing slash on "init" confuses attic #297

SpiritQuaddicted opened this issue Apr 26, 2015 · 2 comments

Comments

@SpiritQuaddicted
Copy link

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
@ThomasWaldmann
Copy link
Contributor

+1 - I just had same effect.

Note: when using tab completion on pathes, bash adds the trailing slash for directories, so line 2 of above somehow comes naturally.

@jborg maybe Location.__init__ or Location.canonical_path should strip trailing slashes from pathes.

@Shuro
Copy link

Shuro commented May 12, 2015

Looks like the same problem as #292

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

3 participants