2013/1/31 Frédéric Camblor <[email protected]>: > @Robert : I'm not using maven-release-plugin, that's for a jenkins > plugin<https://wiki.jenkins-ci.org/display/JENKINS/SCM+Sync+configuration+plugin> > > > @Olivier thanks for the insights > I'll try to work on a PR, but I need some piece of advice on the "better > way" to resolve my problem, by staying in the maven scm api > philosophy/design. > > Would you think my problem is purely a git topic (thus, I should implement > a non generic command like a GitFetchCommand) or could be considered as a > more generic issue (we could add a "checkinAndFetch" generic method, which > aliases checkin() in non-DVCS implementations, and checkint()+fetch() in > DVCS implementations). > > WDYT about this ?
this checkinAndFetch sounds goods for me. > > > > Frédéric Camblor <http://fcamblor.wordpress.com/> > <http://www.twitter.com/fcamblor> > Bordeaux JUG <http://bordeauxjug.org/> Leader > Jenkins <http://jenkins-ci.org/> community member & plugin commiter > > > > On Wed, Jan 30, 2013 at 10:23 PM, Olivier Lamy <[email protected]> wrote: > >> 2013/1/30 Frédéric Camblor <[email protected]>: >> > Hi folks ! >> > >> > I recently aligned from git impl v1.6 to 1.8 and there seems to have a >> > behaviour change between these 2 versions. >> > >> > I noticed when I call a checkIn(), following commands are executed : >> > cd <root dir> && git status --porcelain >> > cd <root dir> && git commit --verbose -F <path to tmp commit file> -a >> > cd <root dir> && git symbolic-ref HEAD >> > cd <root dir> && git push [email protected]:fcamblor/myrepo.git >> master:master >> > >> > The latest command pushes changes on the server, but it doesn't update my >> > local origin/master branch (remote "origin" is not used, I suppose that >> > this is the reason why remote branch is not updated locally during the >> > push). >> > >> > Would there be a workaround, either allowing to use "origin" (instead of >> > "[email protected]:fcamblor/myrepo.git") in the git push command _or_ >> allow to >> > execute some sort of a *git fetch origin master* by using gitexe scm API >> > (or, better, generic SCM API) ? >> as it's done currently the scm url is always used (no way to use origin). >> and update command use pull (not fetch). >> >> Patch or pull request welcome :-) >> sources are now here: >> https://git-wip-us.apache.org/repos/asf?p=maven-scm.git >> >> > >> > Thanks in advance, >> > >> > Frédéric Camblor <http://fcamblor.wordpress.com/> >> > <http://www.twitter.com/fcamblor> >> > Bordeaux JUG <http://bordeauxjug.org/> Leader >> > Jenkins <http://jenkins-ci.org/> community member & plugin commiter >> >> >> >> -- >> Olivier Lamy >> Talend: http://coders.talend.com >> http://twitter.com/olamy | http://linkedin.com/in/olamy >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
