Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » [jgit] Problems to reuses an already cloned repo and tagging
[jgit] Problems to reuses an already cloned repo and tagging [message #756479] Sun, 13 November 2011 21:11 Go to next message
Thorsten Kamann is currently offline Thorsten KamannFriend
Messages: 7
Registered: July 2009
Junior Member
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

Re: [jgit] Problems to reuses an already cloned repo and tagging [message #757310 is a reply to message #756479] Thu, 17 November 2011 16:14 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
- Does $git show 5a9ee6b2b1a1127883a28dc2a2080a05da2a05ca find this commit ?
- Does $git fsck report any errors ?
- Can you tag HEAD and push this using native git ?
Previous Topic:how to tell git to use a remote repository
Next Topic:Egit doesn't recognize user-created symbolic-refs
Goto Forum:
  


Current Time: Tue Mar 19 06:14:12 GMT 2024

Powered by FUDForum. Page generated in 0.02737 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top