christianspecht / scm-backup

Makes offline backups of your cloud hosted source code repositories
https://scm-backup.org/
GNU General Public License v3.0
59 stars 20 forks source link

check usernames and repo names with periods #27

Closed christianspecht closed 2 years ago

christianspecht commented 5 years ago

Bitbucket Backup (SCM Backup's predecessor) had some problems with periods in usernames and at the end of repo names.

--> make sure that this works in SCM Backup, for all hosters

christianspecht commented 4 years ago

Will probably work, because it was already fixed in .NET 4.5...check anyway to be sure

christianspecht commented 2 years ago

Apparently there's some other place in the code which can't handle the "."

When I backup the repos of scm-backup-testuser, the repo with "." fails:

Error fatal: cannot mkdir C:\Backup\scm-backup\github-testuser\scm-backup-testuser#name-with-dot.\repo: Invalid argument

christianspecht commented 2 years ago

The commits so far fix this for repository names with dots.

We don't check user names, because that would mean a second test user per supported hoster, which is too much hassle for this.