git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [EGIT] Checking out signed tags fails
@ 2008-09-16 12:58 Jonas Flodén
  2008-09-16 18:48 ` Jonas Fonseca
  0 siblings, 1 reply; 3+ messages in thread
From: Jonas Flodén @ 2008-09-16 12:58 UTC (permalink / raw)
  To: git

When trying to check-out a signed tag I get the following Error:
Unable to switch branches

Reason:
  Mapping commit: refs/tags/v1.3.1.1

And in details:
Object XXX is not a commit.

The object ID shown is actually the id for the tag object and not the
tagged commit.

This was tested with the latest master. It seemed commit 1f460e2 (Tests
and fixes for dereferencing tags in Repository.resolve(), 2008-09-12)
would fix it, but it didn't.

Thanks,

Jonas

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [EGIT] Checking out signed tags fails
  2008-09-16 12:58 [EGIT] Checking out signed tags fails Jonas Flodén
@ 2008-09-16 18:48 ` Jonas Fonseca
  2008-09-20  0:26   ` Shawn O. Pearce
  0 siblings, 1 reply; 3+ messages in thread
From: Jonas Fonseca @ 2008-09-16 18:48 UTC (permalink / raw)
  To: Jonas Flodén; +Cc: git

On Tue, Sep 16, 2008 at 14:58, Jonas Flodén <jonas.floden@gmail.com> wrote:
> When trying to check-out a signed tag I get the following Error:
> Unable to switch branches
>
> Reason:
>  Mapping commit: refs/tags/v1.3.1.1
>
> And in details:
> Object XXX is not a commit.
>
> The object ID shown is actually the id for the tag object and not the
> tagged commit.
>
> This was tested with the latest master. It seemed commit 1f460e2 (Tests
> and fixes for dereferencing tags in Repository.resolve(), 2008-09-12)
> would fix it, but it didn't.

The fixes are only for the code path where reference expressions needs
to be resolved. From what I understand, the problem you have
encountered is due to resolve() falling back to using resolveSimple()
which doesn't dereference any tags. Perhaps EGit could postfix ^{} or
^{commit} to the tag name before calling mapCommit(), or whatever it
uses?

-- 
Jonas Fonseca

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [EGIT] Checking out signed tags fails
  2008-09-16 18:48 ` Jonas Fonseca
@ 2008-09-20  0:26   ` Shawn O. Pearce
  0 siblings, 0 replies; 3+ messages in thread
From: Shawn O. Pearce @ 2008-09-20  0:26 UTC (permalink / raw)
  To: Jonas Fonseca; +Cc: Jonas Flodddn, git

Jonas Fonseca <jonas.fonseca@gmail.com> wrote:
> On Tue, Sep 16, 2008 at 14:58, Jonas Flodén <jonas.floden@gmail.com> wrote:
> > When trying to check-out a signed tag I get the following Error:
> > Unable to switch branches
> >
> > Reason:
> >  Mapping commit: refs/tags/v1.3.1.1
> >
> > And in details:
> > Object XXX is not a commit.
> >
> > The object ID shown is actually the id for the tag object and not the
> > tagged commit.
> >
> > This was tested with the latest master. It seemed commit 1f460e2 (Tests
> > and fixes for dereferencing tags in Repository.resolve(), 2008-09-12)
> > would fix it, but it didn't.
> 
> The fixes are only for the code path where reference expressions needs
> to be resolved. From what I understand, the problem you have
> encountered is due to resolve() falling back to using resolveSimple()
> which doesn't dereference any tags. Perhaps EGit could postfix ^{} or
> ^{commit} to the tag name before calling mapCommit(), or whatever it
> uses?

Yea, a ^{} is missing somwhere...  this is now in the issue tracker.
I'm behind and probably won't look at it more this week, but its
probably a simple thing in the checkout UI.

-- 
Shawn.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-20  0:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16 12:58 [EGIT] Checking out signed tags fails Jonas Flodén
2008-09-16 18:48 ` Jonas Fonseca
2008-09-20  0:26   ` Shawn O. Pearce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).