error creating tags
azatoth opened this issue · 3 comments
Tried to clone http://bzr.debian.org/apt/python-apt/debian-sid, and got following error:
fatal: Branch name doesn't conform to GIT standards: refs/tags/0.8.0~exp4
fast-import: dumping crash report to .git/fast_import_crash_15223
if you import with the --strip-tags option it will ignore bzr tags, unfortunately since there is no way to make a tag with a tilde (~) in git there are not many other options.
does that solve your issue?
Seems in newer version of git, this is only an warning luckily (WARNING: not creating tag 'refs/tags/0.8.0~exp4' as its name would not be valid in git), but I still think this can be fixed by escaping the bzr tag when needed and unescape it on the return flight.
when i looked into this before I couldn't come up with any reasonable escaping strategies, tags are totally freeform in bzr and have a variety of constraints in git, also it is just not very easy to modify those branch names inline while doing the import as a good portion of the import code is outside of git-bzr-ng