Can't create tags in git repo via dulwich.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dulwich |
Expired
|
Undecided
|
Unassigned |
Bug Description
Ideally, I could call Tag.from_
>>> from dulwich.objects import Tag
>>> Tag.from_
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "dulwich/
obj.
File "dulwich/
self.
File "dulwich/
self.
File "dulwich/
for field, value in parse_tag(
ValueError: need more than 1 value to unpack
This can be fixed by changing https:/
return _parse_
Changed in dulwich: | |
status: | New → Incomplete |
You are improperly using Tag.from_string. from_string takes in a the string for a raw SHAFILE. This means you need the entire contents of an actual Tag object.
Perhaps you mean to construct a new Tag object and give it a name? Like all the other objects, you need to create the object and then assign the values like so:
tag = Tag()
tag.tagger = tagger
tag.message = message
tag.name = tag