Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » problem while pushing using jgit
problem while pushing using jgit [message #582258] Thu, 22 July 2010 06:41
Pitamber Sharma is currently offline Pitamber SharmaFriend
Messages: 2
Registered: July 2010
Junior Member
I am facing problem while pushing to a reomte git repository.

I am using Transport class's open and push method to push from my local repo to a remote repo, but not able to push it properly.

my code:

private void pushToGerrit() throws Exception{"transport opening...");
Transport t =, new URIish("ssh://pitamber@localhost:29418/testproject"));"transport opened..." + t + " with " + new URIish("ssh://pitamber@localhost:29418/testproject"));
RemoteRefUpdate rru = new RemoteRefUpdate(repo, "HEAD", "refs/heads/master", true, null, null);"RRU is " + rru);
List<RemoteRefUpdate> list = new ArrayList<RemoteRefUpdate>();
list.add(rru);"push start...");
PushResult pr = t.push(new TextProgressMonitor(), list);"PushResult is : ", pr.getMessages());

and the logging tweaks are as follows:

2010-07-22 11:50:37,906 INFO server.jgit.GitManager.pushToGerrit(GitManager.jav
a:128) - transport opening...
2010-07-22 11:50:37,984 INFO server.jgit.GitManager.pushToGerrit(GitManager.jav
a:130) - transport w
ith ssh://pitamber@localhost:29418/testproject
2010-07-22 11:50:38,000 INFO server.jgit.GitManager.pushToGerrit(GitManager.jav
a:132) - RRU is RemoteRefUpdate[remoteName=refs/heads/master, NOT_ATTEMPTED, (nu
ll)...a6a6386d, srcRef=HEAD, forceUpdate, message=null, target\issue-repo\testpr
2010-07-22 11:50:38,000 INFO server.jgit.GitManager.pushToGerrit(GitManager.jav
a:135) - push start...
Counting objects: 4
Compressing objects: 100% (4/4)
Writing objects: 100% (4/4)
2010-07-22 11:50:39,328 INFO server.jgit.GitManager.pushToGerrit(GitManager.jav
a:137) - PushResult is :

It shows me that changes pushed succesfully but PushResult is empty. and remote repo's log doesn't reflect any push too.

No exception is there.

Am i missing something?

Any suggestion/help...
Previous Topic:problem while pushing using jgit
Next Topic:EGit Download
Goto Forum:

Current Time: Sun Oct 24 17:11:39 GMT 2021

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

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

Back to the top