Hi Mark! thanks for jumping in! True, I am completely by your side, I'll enable my plugin to work on branches only. All the best! -Simo
http://people.apache.org/~simonetripodi/ http://twitter.com/simonetripodi On Wed, Jun 15, 2016 at 4:49 PM, Mark Prins <mc.pr...@gmail.com> wrote: > Op 15 jun. 2016 16:10 schreef "Justin Georgeson" <jgeorge...@lgc.com>: > > > > Is the failure happening during CI with a shallow clone? I've seen a few > systems > > > > > -----Original Message----- > > > From: simone.trip...@gmail.com [mailto:simone.trip...@gmail.com] On > > > Behalf Of Simone Tripodi > > > Sent: Tuesday, June 14, 2016 6:14 PM > > > To: Maven Users List <users@maven.apache.org> > > > Subject: [EXTERNAL] SCM APIs cause "ref HEAD is not a symbolic ref" > > > > > > Hi all mates, > > > I've been happily using the Maven SCM APIs to perform few operations > "under > > > the hood" for my users, everything was working fine until stumbled in > the > > > SCMException "Detecting the current branch failed: fatal: ref HEAD is > not a > > > symbolic ref" > > > The scenario is: I am using the libraries below > > > > > > <dependency> > > > <groupId>org.apache.maven.scm</groupId> > > > <artifactId>maven-scm-api</artifactId> > > > <version>${maven.scm.version}</version> > > > </dependency> > > > <dependency> > > > <groupId>org.apache.maven.scm</groupId> > > > <artifactId>maven-scm-provider-gitexe</artifactId> > > > <version>${maven.scm.version}</version> > > > </dependency> > > > > The error happens when invoking the checkIn, do > > > you have any recommendation on how to modify the operations sequence in > > > order to make it working, when checking out a tag? > > > > > When you check out a tag in git, the head becomes unattached, you need to > create a branch from the tag and you can then commit to the branch, you > should not attempt to commit to any tag. >