Hello,
I am trying to develop a Git Tag plugin for Atlassian Bamboo. Bamboo has already cloned the repo. Now i want to tag this cloned repo and push the tag back to the origin. For this I try this:
Git git = Git.open(new File(...));
git.tag().setName(tagName).call();
git.push().setRemote("originx").setPushTags().setForce(true).call();
But this doesn't work. I get this exception:
Exception in thread "main" org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of push command
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:163)
at org.agilebackoffice.bamboo.vcstag.git.GitHandler.pushGitRepository(GitHandler.java:78)
at org.agilebackoffice.bamboo.vcstag.git.GitHandler.main(GitHandler.java:103)
Caused by: org.eclipse.jgit.errors.TransportException: https://thorque@github.com/thorque/git-sample.git: Missing commit 5a9ee6b2b1a1127883a28dc2a2080a05da2a05ca
at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:186)
at org.eclipse.jgit.transport.TransportHttp$SmartHttpPushConnection.doPush(TransportHttp.java:726)
at org.eclipse.jgit.transport.BasePackPushConnection.push(BasePackPushConnection.java:126)
at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:141)
at org.eclipse.jgit.transport.Transport.push(Transport.java:1154)
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:159)
... 2 more
The missing commit doesn't exist anywhere and seems only be missing if I tag the repository.
Whats I am doing wrong?
Thorsten
[Updated on: Sun, 13 November 2011 21:19]
Report message to a moderator