Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Push from JGit->JGit "push not permitted"
Push from JGit->JGit "push not permitted" [message #651625] Mon, 31 January 2011 23:19 Go to next message
Roland Schulz is currently offline Roland SchulzFriend
Messages: 3
Registered: July 2009
Junior Member

I can successfully use JGit to push to GIT, GIT to JGit and GIT to GIT. Thus the following three commands work:

sh push --receive-pack=/path/to/git-receive-pack host:path ref
git push --receive-pack= "sh receive-pack" host:path ref
git push --receive-pack=/path/to/git-receive-pack host:path ref

But if I try to push from JGit to JGit using
sh push --receive-pack "sh receive-pack" host:path ref

I get:
org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of push command
at org.eclipse.jgit.pgm.TextBuiltin.execute( 9)
at org.eclipse.jgit.pgm.Main.execute(
at org.eclipse.jgit.pgm.Main.main(
Caused by: org.eclipse.jgit.errors.TransportException: carver:download/gromacs.threading: push not permitted
at org.eclipse.jgit.transport.BasePackPushConnection.noReposito ry(
at org.eclipse.jgit.transport.BasePackConnection.readAdvertised RefsImpl(
at org.eclipse.jgit.transport.BasePackConnection.readAdvertised Refs(
at org.eclipse.jgit.transport.TransportGitSsh$SshPushConnection . <init>(
at org.eclipse.jgit.transport.TransportGitSsh.openPush(Transpor
at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.j ava:130)
at org.eclipse.jgit.transport.Transport.push( )
... 5 more

Am I doing something wrong or is this something which should work and should I file a bug report?
Re: Push from JGit->JGit "push not permitted" [message #807701 is a reply to message #651625] Sun, 26 February 2012 22:45 Go to previous messageGo to next message
Nejat E. is currently offline Nejat E.Friend
Messages: 2
Registered: February 2012
Junior Member
Hi Roland,

could you solve that problem? I do have the same troubles Sad

Re: Push from JGit->JGit "push not permitted" [message #819658 is a reply to message #651625] Tue, 13 March 2012 07:04 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1007
Registered: July 2009
Senior Member
try the following commands:
./ push host:path srcRef:dstRef

Can you push using native git ?
git push host:path srcRef:dstRef

Why do you use 0.10.1 which is pretty old ?
Did you also try with 1.3 or 2.0.0-SNAPSHOT ?

You can always download the latest release from
Previous Topic:stash
Next Topic:branch.master.merge key for pull
Goto Forum:

Current Time: Mon Apr 23 09:57:57 GMT 2018

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

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