{"thread":{"id":"15549","subject":"[EGIT] Checking out signed tags fails","startedAt":"2008-09-16T12:58:52Z","lastAt":"2008-09-20T00:26:48Z","messageCount":3,"participants":["Jonas Flodén","Jonas Fonseca","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"90828","messageId":"gaoaif$2up$1@ger.gmane.org","threadId":"15549","inReplyTo":null,"subject":"[EGIT] Checking out signed tags fails","fromName":"Jonas Flodén","fromEmail":"jonas.floden@gmail.com","sentAt":"2008-09-16T12:58:52Z","receivedAt":"2008-09-16T12:58:52Z","isPatch":false,"sender":{"key":"jonas.floden@gmail.com","avatar":null},"body":"When trying to check-out a signed tag I get the following Error:\nUnable to switch branches\n\nReason:\n  Mapping commit: refs/tags/v1.3.1.1\n\nAnd in details:\nObject XXX is not a commit.\n\nThe object ID shown is actually the id for the tag object and not the\ntagged commit.\n\nThis was tested with the latest master. It seemed commit 1f460e2 (Tests\nand fixes for dereferencing tags in Repository.resolve(), 2008-09-12)\nwould fix it, but it didn't.\n\nThanks,\n\nJonas\n"},{"id":"90855","messageId":"2c6b72b30809161148p2b4ce08fh32ff5717ca85e773@mail.gmail.com","threadId":"15549","inReplyTo":"gaoaif$2up$1@ger.gmane.org","subject":"Re: [EGIT] Checking out signed tags fails","fromName":"Jonas Fonseca","fromEmail":"jonas.fonseca@gmail.com","sentAt":"2008-09-16T18:48:01Z","receivedAt":"2008-09-16T18:48:01Z","isPatch":false,"sender":{"key":"jonas.fonseca@gmail.com","avatar":"https://gravatar.com/avatar/9b7fa23cce50269e5d164312b6ac5ae818a180f837b38f28f3bdf689dd7f96cd?d=mp&s=160"},"body":"On Tue, Sep 16, 2008 at 14:58, Jonas Flodén <jonas.floden@gmail.com> wrote:\n> When trying to check-out a signed tag I get the following Error:\n> Unable to switch branches\n>\n> Reason:\n>  Mapping commit: refs/tags/v1.3.1.1\n>\n> And in details:\n> Object XXX is not a commit.\n>\n> The object ID shown is actually the id for the tag object and not the\n> tagged commit.\n>\n> This was tested with the latest master. It seemed commit 1f460e2 (Tests\n> and fixes for dereferencing tags in Repository.resolve(), 2008-09-12)\n> would fix it, but it didn't.\n\nThe fixes are only for the code path where reference expressions needs\nto be resolved. From what I understand, the problem you have\nencountered is due to resolve() falling back to using resolveSimple()\nwhich doesn't dereference any tags. Perhaps EGit could postfix ^{} or\n^{commit} to the tag name before calling mapCommit(), or whatever it\nuses?\n\n-- \nJonas Fonseca\n"},{"id":"91159","messageId":"20080920002648.GG13139@spearce.org","threadId":"15549","inReplyTo":"2c6b72b30809161148p2b4ce08fh32ff5717ca85e773@mail.gmail.com","subject":"Re: [EGIT] Checking out signed tags fails","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-09-20T00:26:48Z","receivedAt":"2008-09-20T00:26:48Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Jonas Fonseca <jonas.fonseca@gmail.com> wrote:\n> On Tue, Sep 16, 2008 at 14:58, Jonas Flodén <jonas.floden@gmail.com> wrote:\n> > When trying to check-out a signed tag I get the following Error:\n> > Unable to switch branches\n> >\n> > Reason:\n> >  Mapping commit: refs/tags/v1.3.1.1\n> >\n> > And in details:\n> > Object XXX is not a commit.\n> >\n> > The object ID shown is actually the id for the tag object and not the\n> > tagged commit.\n> >\n> > This was tested with the latest master. It seemed commit 1f460e2 (Tests\n> > and fixes for dereferencing tags in Repository.resolve(), 2008-09-12)\n> > would fix it, but it didn't.\n> \n> The fixes are only for the code path where reference expressions needs\n> to be resolved. From what I understand, the problem you have\n> encountered is due to resolve() falling back to using resolveSimple()\n> which doesn't dereference any tags. Perhaps EGit could postfix ^{} or\n> ^{commit} to the tag name before calling mapCommit(), or whatever it\n> uses?\n\nYea, a ^{} is missing somwhere...  this is now in the issue tracker.\nI'm behind and probably won't look at it more this week, but its\nprobably a simple thing in the checkout UI.\n\n-- \nShawn.\n"}]}