denio7 / egit

Automatically exported from code.google.com/p/egit
0 stars 0 forks source link

EGit fails when checking out a tag "Mapping commit: refs/tags/v1.3.1.1" #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

(reported on git ML)

Original issue reported on code.google.com by shawn.pe...@gmail.com on 20 Sep 2008 at 12:24

GoogleCodeExporter commented 8 years ago
From Jonas Fonseca:
> 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...

Original comment by shawn.pe...@gmail.com on 20 Sep 2008 at 12:25

GoogleCodeExporter commented 8 years ago
See http://egit.eclipse.org/r/#change,1088

Original comment by robin.ro...@gmail.com on 12 Jul 2010 at 5:16