diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2009-11-03 16:35:33 +0100 |
|---|---|---|
| committer | Sebastian Thiel <byronimo@gmail.com> | 2009-11-03 16:35:33 +0100 |
| commit | 3cb5ba18ab1a875ef6b62c65342de476be47871b (patch) | |
| tree | d287a2fad9f87856b6937ffd4abaed66c9066da7 /lib/git/objects/tag.py | |
| parent | dbc18b92362f60afc05d4ddadd6e73902ae27ec7 (diff) | |
| download | GitPython-3cb5ba18ab1a875ef6b62c65342de476be47871b.tar.gz GitPython-3cb5ba18ab1a875ef6b62c65342de476be47871b.zip | |
object: renamed id attribute to sha as it in fact is always being rewritten as sha, even if the passed in id was a ref. This is done to assure objects are uniquely identified and will compare correctly
Diffstat (limited to 'lib/git/objects/tag.py')
| -rw-r--r-- | lib/git/objects/tag.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/git/objects/tag.py b/lib/git/objects/tag.py index b2140551..c329edf7 100644 --- a/lib/git/objects/tag.py +++ b/lib/git/objects/tag.py @@ -17,7 +17,7 @@ class TagObject(base.Object): type = "tag" __slots__ = ( "object", "tag", "tagger", "tagged_date", "message" ) - def __init__(self, repo, id, object=None, tag=None, + def __init__(self, repo, sha, object=None, tag=None, tagger=None, tagged_date=None, message=None): """ Initialize a tag object with additional data @@ -25,7 +25,7 @@ class TagObject(base.Object): ``repo`` repository this object is located in - ``id`` + ``sha`` SHA1 or ref suitable for git-rev-parse ``object`` @@ -41,7 +41,7 @@ class TagObject(base.Object): is the DateTime of the tag creation - use time.gmtime to convert it into a different format """ - super(TagObject, self).__init__(repo, id ) + super(TagObject, self).__init__(repo, sha ) self._set_self_from_args_(locals()) def _set_cache_(self, attr): |
