Hi ohhh sorry for confusion, the release before which should 1.9.2 :-) Well as others say you must work with branches from the tag!! Olivier
On 16 June 2016 at 01:45, Simone Tripodi <[email protected]> wrote: > Salut mon ami! > And thanks for jumping in to help! > Looks like maven-scm-provider-gitexe-1.9.3 does not exist[1]... > > I am not worried about the time the operations are performed, given the > users environment gitexe is the simpler options because I don't have to > adjust the jgit settings... > > Thanks! > -Simo > > [1] > > http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.apache.maven.scm%22%20AND%20a%3A%22maven-scm-provider-gitexe%22 > > > http://people.apache.org/~simonetripodi/ > http://twitter.com/simonetripodi > > On Wed, Jun 15, 2016 at 1:49 PM, Olivier Lamy <[email protected]> wrote: > > > Hi Simone, > > Did it work with 1.9.3? > > More generally, I would recommend you to use the jgit provider which will > > be probably faster (not forking any cli etc..) > > > > Cheers > > Olivier > > > > > > > > > > > > On 15 June 2016 at 09:13, Simone Tripodi <[email protected]> > wrote: > > > > > 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> > > > where <maven.scm.version>1.9.4</maven.scm.version>, the sequence of > > > operations that cause the error are: > > > > > > ScmVersion version = new ScmTag(version); > > > ScmResult result = scmManager.checkOut(repository, new > > > ScmFileSet(appDir), version); > > > ... > > > result = scmManager.add(repository, new ScmFileSet(appDir, > > > newFile), commitMessage); > > > ... > > > result = scmManager.checkIn(repository, new ScmFileSet( > > > quickstartDir), version, commitMessage); > > > 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? > > > > > > Many thanks in advance, all the best! > > > -Simo > > > > > > http://people.apache.org/~simonetripodi/ > > > http://twitter.com/simonetripodi > > > > > > > > > > > -- > > Olivier Lamy > > http://twitter.com/olamy | http://linkedin.com/in/olamy > > >
