FriendCode / gittle

Pythonic Git for Humans
Other
732 stars 90 forks source link

Gittle Doesn't like Tag Names? #28

Closed MelchiSalins closed 10 years ago

MelchiSalins commented 10 years ago

bit_repo = Gittle.clone(repo_url, repo_path) where repo_url = https://melchi_salins@bitbucket.org//private.git

bit_repo = Gittle.clone(repo_url, repo_path) Traceback (most recent call last): File "", line 1, in File "/Users/macbookpro/Projects/gittle_test/lib/python2.7/site-packages/gittle/gittle.py", line 439, in clone repo.fetch(bare=bare) File "/Users/macbookpro/Projects/gittle_test/lib/python2.7/site-packages/gittle/gittle.py", line 417, in fetch self._setup_fetched_refs(remote_refs, origin, bare) File "/Users/macbookpro/Projects/gittle_test/lib/python2.7/site-packages/gittle/gittle.py", line 398, in _setup_fetched_refs self[k] = v File "/Users/macbookpro/Projects/gittle_test/lib/python2.7/site-packages/gittle/gittle.py", line 1171, in setitem self.repo[key] = value File "/Users/macbookpro/Projects/gittle_test/lib/python2.7/site-packages/dulwich/repo.py", line 472, in setitem self.refs[name] = value File "/Users/macbookpro/Projects/gittle_test/lib/python2.7/site-packages/dulwich/refs.py", line 257, in setitem self.set_if_equals(name, None, ref) File "/Users/macbookpro/Projects/gittle_test/lib/python2.7/site-packages/dulwich/refs.py", line 564, in set_if_equals self._check_refname(name) File "/Users/macbookpro/Projects/gittle_test/lib/python2.7/site-packages/dulwich/refs.py", line 170, in _check_refname raise RefFormatError(name) dulwich.errors.RefFormatError: refs/tags/XXX_Demo_Prod^{}

jelmer commented 10 years ago

This is a peeled tag - the characters ^{} are not valid in tag names.

AaronO commented 10 years ago

Duplicate of #33, fixed by #35