| Forum: EGit |
|---|
| Topic: jgit git-new-workdir? |
|---|
|
| Topic: Exception caught during execution of ls-remote command |
|---|
| Exception caught during execution of ls-remote command [message #876844] |
Fri, 25 May 2012 07:24 |
saurav sarkar Messages: 390 Registered: July 2009 |
Senior Member |
|
|
HI All,
I am extremely new to Git and its concepts.
For my project i was trying to set up a github repository.
1. I had created an eclipse plug-in project.
2. Shared the project with GIT in my local system.(Created a local respository).
3. Now i want to push the local repository to the GIT hub repository created.
4. Created the GitHub repository.
5. I added the new public key generated to my git hub account
6. Now whenever i am trying to push the code to the git hub account.Pushing the code to the created GitHub repository url. I am getting this exception
Exception caught during execution of ls-remote command
And am not able to proceed.
I am definitely missing something very silly .
cheers,
Saurav
My Blog http://codifyit.blogspot.com/
Follow me: http://twitter.com/sauravs
[Updated on: Fri, 25 May 2012 07:25] Report message to a moderator
|
|
|
| Topic: why no 'fetch' for multiple repos? |
|---|
| why no 'fetch' for multiple repos? [message #875844] |
Wed, 23 May 2012 08:39 |
R Shapiro Messages: 184 Registered: June 2011 |
Senior Member |
|
|
Seems odd to me that egit should support 'pull' for multiple repos, but not 'fetch', given that 'pull' is fetch + merge. Am I missing something? If it can pull multiple repos then by definition it can fetch multiple repos just by skipping the merge step. Or am I missing something?
|
|
|
| Topic: project decorations still broken with local tracking |
|---|
|
| Topic: import from git fails |
|---|
| import from git fails [message #871354] |
Sat, 12 May 2012 06:18 |
thorsten meier Messages: 4 Registered: April 2012 |
Junior Member |
|
|
hi,
ive just created a project on a linux installation and later imported it on a windows eclipse.
now on a third machine importing the project doesnt work, its all fine until i can choose between
* import existing project
* use the new project wizard
* import as a general project
choosind the first option tells me on the next page that theres no project to import
(this worked the on the windows host)
[b]what i did:[\b]
file -> import -> git -> projects from git -> uri
i only used these three fields:
hostname = gitoliteeclipse
repository path = labor1
protocol = ssh
the rest is defined in ~/.ssh/config
Host gitoliteeclipse
Hostname 10.8.1.18
IdentitiesOnly yes
User julius
IdentityFile /home/juliusnew/.ssh/id_rsa.eclipse
all three machines use eclipse for java developers SR2
what could be the problem?
doing a git clone from the console i get these files:
git clone gitoliteeclipse:labor1
Cloning into 'labor1'...
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 11 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (11/11), 3.18 KiB, done.
find labor1/
labor1/
labor1/Prog-Aufgabe1
labor1/Prog-Aufgabe1/src
labor1/Prog-Aufgabe1/src/de
labor1/Prog-Aufgabe1/src/de/proglabor
labor1/Prog-Aufgabe1/src/de/proglabor/aufgabe1
labor1/Prog-Aufgabe1/src/de/proglabor/aufgabe1/Spiel.java
labor1/Prog-Aufgabe1/src/de/proglabor/aufgabe1/ISpiel.java
labor1/Prog-Aufgabe1/src/de/proglabor/aufgabe1/Spielfigur.java
labor1/Prog-Aufgabe1/src/de/proglabor/aufgabe1/Bauer.java
labor1/.git
labor1/.git/branches
labor1/.git/logs
labor1/.git/logs/refs
labor1/.git/logs/refs/heads
labor1/.git/logs/refs/heads/master
labor1/.git/logs/HEAD
labor1/.git/packed-refs
labor1/.git/info
labor1/.git/info/exclude
labor1/.git/refs
labor1/.git/refs/remotes
labor1/.git/refs/remotes/origin
labor1/.git/refs/remotes/origin/HEAD
labor1/.git/refs/heads
labor1/.git/refs/heads/master
labor1/.git/refs/tags
labor1/.git/description
labor1/.git/objects
labor1/.git/objects/info
labor1/.git/objects/pack
labor1/.git/objects/pack/pack-b828f9c83301c2285aba1c3e756996207a436d35.idx
labor1/.git/objects/pack/pack-b828f9c83301c2285aba1c3e756996207a436d35.pack
labor1/.git/hooks
labor1/.git/hooks/applypatch-msg.sample
labor1/.git/hooks/prepare-commit-msg.sample
labor1/.git/hooks/pre-rebase.sample
labor1/.git/hooks/pre-applypatch.sample
labor1/.git/hooks/commit-msg.sample
labor1/.git/hooks/update.sample
labor1/.git/hooks/post-update.sample
labor1/.git/hooks/pre-commit.sample
labor1/.git/config
labor1/.git/index
labor1/.git/HEAD
[Updated on: Sat, 12 May 2012 06:38] Report message to a moderator
|
|
|
| Topic: multiple ssh keys |
|---|
| multiple ssh keys [message #871214] |
Fri, 11 May 2012 09:20 |
thorsten meier Messages: 4 Registered: April 2012 |
Junior Member |
|
|
hi,
importing a project from hostx does not work if there are 2 keys added in the eclipse settings.
(file -> import... -> from git -> uri)
after adding the host data and pressing next egit complains that it cant list the remote branches, but also shows at the top that it used the first ssh key thats added in eclipse.
how do you work around this on windows?
on linux you could create a host alias in ~/.ssh/config.
|
|
|
| Topic: Commit view opened from stash entry lacks diff tab |
|---|
| Commit view opened from stash entry lacks diff tab [message #870298] |
Mon, 07 May 2012 11:21 |
R Shapiro Messages: 184 Registered: June 2011 |
Senior Member |
|
|
Double-clicking an entry in this Stashed Commits list opens the stash in a Commit view, which is handy. But these Commit views come up without a 'diff' tab, making it difficult to see the content of the stash as whole. In other words there's no egit equivalent to 'git stash show'.
I assume the reason is that these views always show more than one parent, which I guess is logically correct (?). But in this case I would think it makes more sense to show only the original parent. That in turn would cause the right thing happen with 'diff'.
|
|
|
| Topic: Git submodule foreach |
|---|
| Git submodule foreach [message #868542] |
Wed, 02 May 2012 03:26 |
Stijn Verbeke Messages: 1 Registered: May 2012 |
Junior Member |
|
|
Hi,
I'm working with a lot of repositories and I'm trying to find a way to combine them in one repository. The goal is to be able to update all of the subprojects at once and get all the changes. After some searching I came across "submodules" and found an extra command-line that does exact that (fetching all the changes of every submodule) but apperantly egit doesn't support this (yet?). Are there any plans of implementing this in the future? Is there a way around it in the mean time?
Kind Regards,
Stijn Verbeke
|
|
|
| Topic: unable to create remote repo |
|---|
|
| Topic: Changed files not picked up for Commit |
|---|
| Changed files not picked up for Commit [message #851163] |
Fri, 20 April 2012 14:09 |
Joan Touzet Messages: 2 Registered: June 2011 |
Junior Member |
|
|
I'm running the latest nightly build of EGit (2.0.0.201204200909), and I'm seeing something strange.
Previously I could change a file and immediately see in the tree view the change decorator (* filename), then use Team > Commit. Now EGit is no longer picking up the change. I've tried Refresh, Open/Close, none seem to work.
The only thing that works is completely quitting out of Eclipse and restarting it. On restart the changed file is recognized and I can commit.
Is this a known problem, or do I have something misconfigured?
|
|
|
| Topic: Working with Sub Repositories - .git files ignored |
|---|
| Working with Sub Repositories - .git files ignored [message #847439] |
Tue, 17 April 2012 05:58 |
Sebastian Pleschko Messages: 1 Registered: April 2012 |
Junior Member |
|
|
We are working on a highly modularized system were every submodule has it's own git repository. The main project itself is also under git version control. For several reasons we opted against using git's own submodule system and built a structure ourselves which looks like so:
/MainProject
- .git/
- app/
- src(ignored in MainProject's .gitignore)/
- - SubModule1/
- - - .git/
- - SubModule2/
- - - .git/
Now Egit does not provide a possibility to define a different repository for a subfolder, so I would like to ask you if you have any ideas for a workaround!
Thanks!
Sebastian
|
|
|
| Topic: egit does not accept ssh key |
|---|
| egit does not accept ssh key [message #845076] |
Sat, 14 April 2012 14:17 |
Missing name Mising name Messages: 1 Registered: April 2012 |
Junior Member |
|
|
hi,
i can run:
git clone ssh://git@10.8.1.6/labor
and if the right key is unlocked via gnome keyring it clones the repo without asking for a password.
but if i do a pull from eclipse it fails, eclipse asks me everytime for the key and does not accept the password.
ive added the key in general -> network -> ssh -> keys
ive used egit in october last year and posted this:
eclipse.org/forums/index.php/m/753457/?srch=howto+add+remote#msg_753457
about "howto share a local project" - these are the steps i took to get the code into the repo (or tried todo)
which worked back then and should still work today because i didnt upgrade the eclipse in question from back then.
this is the remote config part from the git config:
paste.pound-python.org/show/19265/
im not yet allowed to post links, sry for the inconvenience.
[Updated on: Sat, 14 April 2012 14:20] Report message to a moderator
|
|
|
| Topic: Wrong behaviour of EGit |
|---|
| Wrong behaviour of EGit [message #842747] |
Thu, 12 April 2012 11:34 |
Heiko Wiesner Messages: 2 Registered: April 2012 |
Junior Member |
|
|
I have problems in 1 Project.
I use SpringSource Tool Suite 2.9.1.RELEASE and EGit 1.3.0.201202151440.
I have 1 file in the problem project. When i make changes, the icon of the file does not change. When i synchronize workspace, i get the message "No changes found".
When i use the commandline Git, the file is showed as changed.
When i add a file in eclipse, the new file is immediately shown with the synchronized Icon.
When i select Team -> show in History, i get the message "File xyz is not contained in the commits ..."
Is it a settings problem or a bug?
best regards
|
|
|
| Topic: Git/EGit with ~central VCS setup? |
|---|
| Git/EGit with ~central VCS setup? [message #840175] |
Mon, 09 April 2012 15:09 |
Ben Riddell Messages: 1 Registered: April 2012 |
Junior Member |
|
|
Hi,
I'm trying to set up a Git repo to work with what seems to be a non-standard configuration.
It's a WordPress site with Dev, Staging, and Production environments. We're doing quite a bit of rapid development, and I wanted to avoid installing and maintaining a full working WordPress site, with up-to-date configurations and data, for each developer. There are also plenty of files, WP core and binary files, that should not be stuck in the repo for various reasons.
So I wanted the Dev environment to be the sandbox, so files would be edited locally, then SFTPed up to Dev. When working there, they would be commited to the repo, then checked out (pushed or pulled) to Staging. After more review on Staging, they would be Tagged as ready-for-primetime, and then pushed or pulled (by a restricted user group) to Production.
My head may be stuck in the SubVersion idiom, but this makes sense to me. My problem now is getting a GUI interface for the coders that can accept a the remote checkout (Dev) as "home". And then connect to another remote "home" (Staging) to pull the commits in.
Finally, a way to set a GUI driven connection from Production to pull the files there.
Any pointers on how to deal with this? Right now I'm also dealing with the team split between different applications for file editing/management - Eclipse with Egit, Source Tree, and another text editor with a Git plugin.
Thanks!
-Ben
|
|
|
| Topic: Selecting entries in Git Repositories view doesn't set egit variables |
|---|
| Selecting entries in Git Repositories view doesn't set egit variables [message #837990] |
Fri, 06 April 2012 07:53 |
R Shapiro Messages: 184 Registered: June 2011 |
Senior Member |
|
|
I have several external launchers that reference egit variables like git_work_tree and git_dir. These work as expected when I select entries in an Explorer view (eg Package Explorer for a Java project) but not if I select an entry in the Git repositories view. In the latter case I get "no selected resource" Seems like the egit variables should follow selection in this view.
|
|
|
| Topic: egit ssh failure |
|---|
| egit ssh failure [message #830558] |
Tue, 27 March 2012 15:56 |
J Cantara Messages: 1 Registered: March 2012 |
Junior Member |
|
|
Hello,
I just downloaded Eclipse yesterday, and installed the Egit plugin (or add-on, not sure the terminology yet). I set it up what I believe is correctly (using git over ssh), but I get disconnected upon trying to connect to my git server. I don't have the exact error in front of me; but it was very simple and nondescript, something like "exception when executing ls-remote". The error I have on the server side of things is as follows:
auth.log:
Accepted publickey for git from ip.addr.addr.addr port 1024 ssh2
pam_unix(sshd:session): session opened for user git by (uid=0)
channel_by_id: 0: bad id: channel free
Disconnecting: Received data for nonexistent channel 0.
pam_unix(sshd:session): session closed for user git
So it looks like it is accepting the ssh key, and making the connection properly; but then the "nonexistent channel" error, I don't know what to do about. There's very little on google about it as well. It looks like eclipse uses Jsch for ssh internally - but I can't find a way to update that specifically, it doesn't appear to be a plugin or anything. I tried the "stable" Egit, and then the "bleeding edge" one as well; both with the same result.
I don't know what other information would be useful for me to provide - I am an eclipse newbie, so please be gentle The version of eclipse is "classic" and whatever was available yesterday (2012-03-26) on the website.
More notes: client machine where eclipse is installed is Win7-64. Git server is Ubuntu 10.04 with openssh.
Further notes: this git repo is known-working otherwise.
[Updated on: Tue, 27 March 2012 16:19] Report message to a moderator
|
|
|
| Topic: time lapse view? |
|---|
| time lapse view? [message #828730] |
Sun, 25 March 2012 03:24 |
ted y Messages: 9 Registered: March 2012 |
Junior Member |
|
|
is it possible to do the time-lapse view as in p4 client?
basically you slide a slider, and the contents of a file changes through the different commits,
also the rich info in the blame view is very helpful.
right now you have to hover mouse to get the info about the blame annotation, it would
be nicer if the blame info is shown directly on the left
|
|
|
| Topic: status decorations and bundles as "remote" references |
|---|
| status decorations and bundles as "remote" references [message #827756] |
Fri, 23 March 2012 15:01 |
R Shapiro Messages: 184 Registered: June 2011 |
Senior Member |
|
|
Git bundles are a great way to keep an offline repository in sync, a situation that arises if you ever need to work in a secure environment. That standard pattern for working this way is to fetch the contents of the bundle into one or more references (one per branch in the bundle) and then configure working branches to track those refs, as if they were remote references. This way the the working branches can pull from the bundle, and 'git status' will show a useful summary of the working branch relative to the most currently fetched bundle.
Leaving aside for now the question of jgit/egit support for bundles, some of this works in egit and some of it doesn't. Specifically, once I fetch the contents of a bundle with Git and manually configure a tracking branch, the egit 'pull' operation works as expected. But the up-arrow/down-arrow decorations don't work in this setting. Similarly, setting up tracking for these branches in egit doesn't work.
Most likely the problem is that egit is incorrectly assuming that the tracked branch must be a remote reference, even though Git does not require that to be true.
How hard would it be to get the decorations and tracking setup working in this context?
As a followup, how hard would it be support bundle create and bundle fetch?
|
|
|
| Topic: Remote Tracking Branch Issues |
|---|
| Remote Tracking Branch Issues [message #824476] |
Mon, 19 March 2012 14:13 |
rahim virani Messages: 3 Registered: March 2012 |
Junior Member |
|
|
I am having trouble getting EGit to 'pull' from a newly created remote branch. Here is the command line equivalent of my objective:
git checkout -b RV-1234
git push -u origin RV-1234
If I create a branch RV-1234 based on a remote, master let's say, with default strategy 'rebase', then I end up with this new local branch tracking master on the remote. (makes sense). When I push the newly created branch, I get a new remote branch RV-1234 and 'push' is automatically setup to 'push' to the corresponding remote. (OK). However, the branch is still 'pulling' from master. I want to make it 'pull' from the new remote that it is 'pushing' to, RV-1234.
How do I get Egit to produce the command 'git push -u origin RV-1234' instead of 'git push origin RV-1234' to make this happen? I don't want to go and edit my config file every time. That's nuts.
|
|
|
| Topic: stash |
|---|
| stash [message #818429] |
Sun, 11 March 2012 12:16 |
R Shapiro Messages: 184 Registered: June 2011 |
Senior Member |
|
|
I don't know if this is a brand new, but I just noticed that basic stash support is now available in the "Git Repositories" view. From here you can do the equivalents of the simple forms of the following:
git stash ["Stash Changes" operation on right-click menu]
git stash list [the stashes are listed directly in this view under "Stashed Commits"]
git stash apply ["Apply stashed changes" from the right-click menu of items in "Stashed Commits"]
git stash show [double-click a listed stash to see it in a commit view]
Very nice.
No support yet for 'drop', 'pop', 'clear', 'create' or 'branch', at least not that I can see. Coming soon I'm sure. The first three are easily done in their basic form with external launchers, assuming you have command-line Git installed.
|
|
|
| Topic: remember ssh passphrase |
|---|
| remember ssh passphrase [message #810075] |
Wed, 29 February 2012 11:55 |
Ivan V Messages: 15 Registered: March 2010 |
Junior Member |
|
|
|
Can EGit be set to remember an ssh passphrase? On the Mac command line ssh works with the Key manager and doesn't prompt for the passphrase. Could EGet be set to do this too?
|
|
|
| Topic: Is there any way to track the duration of git clone operation |
|---|
| Is there any way to track the duration of git clone operation [message #806815] |
Sat, 25 February 2012 09:37 |
Chandler zhang Messages: 1 Registered: February 2012 |
Junior Member |
|
|
My project needs to track the duration of git clone through EGit import project wizard.
I read the source code of EGit and did not find any notification sent out ant the beginning or end of git clone operation.
Is there any way I could implement this functionality?
Somebody suggested to add listener to Repository in JGit on Stackoverflow, but there's no notifications for start/end of git clone either.
Thanks
|
|
|
| Topic: JGit |
|---|
| JGit [message #802740] |
Mon, 20 February 2012 06:36 |
John J D Messages: 1 Registered: January 2012 |
Junior Member |
|
|
I did some experiments using JGit. While attempting to (programmatically) push the .war file, the following exception is thrown.
Created SSHKey:com.openshift.express.client.SSHKeyPair@1186fab
org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of push command
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:156)
at com.wi.jgit.helper.JGitHelper.pushRepo(JGitHelper.java:61)
at com.wi.jgit.helper.JGitHelper.main(JGitHelper.java:25)
Caused by: org.eclipse.jgit.errors.TransportException: ssh://2a96c96d37264406a33dac4dc232ff1a@testmc7-testmc.rhcloud.com/~/git/testmc7.git/: Auth fail
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:141)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
at org.eclipse.jgit.transport.TransportGitSsh$SshPushConnection.<init>(TransportGitSsh.java:306)
at org.eclipse.jgit.transport.TransportGitSsh.openPush(TransportGitSsh.java:152)
at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:130)
at org.eclipse.jgit.transport.Transport.push(Transport.java:1120)
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:152)
... 2 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:464)
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
... 8 more
Attached is the relevant code. If you could provide some clues, that would be great.
|
|
|
| Topic: Pull authentication fail because of rsa authentication |
|---|
| Pull authentication fail because of rsa authentication [message #799725] |
Thu, 16 February 2012 03:33 |
Hardik Shah Messages: 7 Registered: November 2011 |
Junior Member |
|
|
While using jgit api for pull following error occred.
Environment is : Windows XP
org.eclipse.jgit.errors.UnsupportedCredentialItem: ssh://mshah@10.13.28.4:22: The authenticity of host '10.13.28.4' can't be established.
RSA key fingerprint is f9:dd:cf:ea:87:9b:33:be:fc:b5:3f:65:0d:e7:09:88.
Are you sure you want to continue connecting?
at org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider.get(UsernamePasswordCredentialsProvider.java:110)
at org.eclipse.jgit.transport.CredentialsProviderUserInfo.promptYesNo(CredentialsProviderUserInfo.java:124)
at com.jcraft.jsch.Session.checkHost(Session.java:718)
at com.jcraft.jsch.Session.connect(Session.java:317)
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:128)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:127)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:113)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1062)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:136)
at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:218)
[Updated on: Thu, 16 February 2012 03:50] Report message to a moderator
|
|
|
| Topic: Patches do not end with new line |
|---|
| Patches do not end with new line [message #796916] |
Sun, 12 February 2012 15:24 |
Stevo Slavic Messages: 20 Registered: July 2009 |
Junior Member |
|
|
A patch created using egit from commit in history, when applied using git (command line) check fails reporting that last line in the patch is corrupt. After appending a new line at the end of the patch file, git accepts patch as valid.
Does this has to do something with my local configuration, am I doing something wrong, or is this a bug that could be fixed in egit/jgit?
Environment used includes:
- git version 1.7.7.6
- SpringSource Tool Suite 2.8.1.RELEASE (based on Eclipse Indigo 3.7.1)
- egit 1.1.0
Kind regards,
Stevo.
|
|
|
| Topic: getting bundle support into jgit/egit |
|---|
| getting bundle support into jgit/egit [message #794571] |
Thu, 09 February 2012 08:03 |
R Shapiro Messages: 184 Registered: June 2011 |
Senior Member |
|
|
Standard Git has a simple but powerful set of features that allow a file to act as a kind of remote repository that can be used as the target of a fetch. Remote references can be configured to "track" a bundle file in much the same way you would track a branch in another repository. So 'git pull' will do the right thing, and 'git status' will show the right information (eg "behind by 3 commits" or whatever).
This is great for sharing commits via email and even better if you need to maintain a repository clone on a host that either can't have internet connectivity (for security reasons) or can but for some reason currently doesn't. None of the other version control systems I've used has this. The fact that Git does is one of the reasons we chose to use it.
Currently jgit/egit has almost no support for 'bundle' files. The one thing it does do is 'pull', if you manually configure the remote reference and the tracking (this is really just a 'merge' against an existing reference).
You can't create, query or fetch from bundle file in egit, you can't create a tracking branch to a bundle location, you can't use advanced synchronize to compare against a remote reference associated with a bundle, and the nice egit 1.3 feature that shows the ahead-of/behind count status for remote references doesn't work if the reference is pointing at a bundle.
I think it's important to add some bundle support to egit/jgit. Much of this should be easy. For instance there's no reason why synchronize and status shouldn't work when the remote reference is associated with a bundle. The reference itself is is perfectly normal, it just happens to live at the top-level of refs/remotes, not one level down. Similarly, creating a tracking branch to a bundle remote reference (the 'remote' in this case is ".").
Even adding these easy bits, and leaving aside for now the core bundle create and fetch operations, would be a big win.
|
|
|
| Topic: Synchronize view buttons |
|---|
| Synchronize view buttons [message #789658] |
Fri, 03 February 2012 03:36 |
Ondrej Medek Messages: 15 Registered: July 2009 |
Junior Member |
|
|
Hi,
a common scenario when synchronizing with remote repo is: 1. fetch, 2. rebase or merge, 3. push. EGit 1.2 has only buttons "Pull" and "Push" in the Synchronize View. I think it would be nice to have these buttons there: 1. Fetch, 2. Rebase, 3. Merge, 4. Pull, 5. Push. With a possibility to hide/show any of them.
Is this a good idea? If so, I'll post a feature request to Bugzilla.
|
|
|
| Topic: EGit and RemoteTools (PTP) |
|---|
| EGit and RemoteTools (PTP) [message #782781] |
Tue, 24 January 2012 07:51 |
Ralf Glaser Messages: 1 Registered: January 2012 |
Junior Member |
|
|
Hello,
i'm using Eclipse Indigo with PTP and the latest nightly build of Egit on Windows XP.
Since i failed to add a remote project to my local Git repository using EGit 1.1 (Team->Share, Warning about unset $HOME, no further action) my Eclipse doesn't start anymore and refers me to the error log containing the error below.
Update to EGit 1.2 and 1.3 respectively didn't change anything.
Google found me a patch by Dariusz Luksza (Change-Id: I929c3c32eaa4bd4de4c18d02fb07a44af0af8fe4) which seems to address the problem but should already be included in the latest version.
java.lang.StackOverflowError
at java.util.HashMap.get(Unknown Source)
at java.util.Collections$SynchronizedMap.get(Unknown Source)
at org.eclipse.core.internal.resources.WorkspaceRoot.getProject(WorkspaceRoot.java:180)
at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:2173)
at org.eclipse.core.internal.resources.Container.getChildren(Container.java:154)
at org.eclipse.core.internal.resources.WorkspaceRoot.getProjects(WorkspaceRoot.java:214)
at org.eclipse.core.internal.resources.WorkspaceRoot.getProjects(WorkspaceRoot.java:207)
at org.eclipse.egit.core.project.RepositoryMapping.getMappingForNonWorkspaceResource(RepositoryMapping.java:274)
at org.eclipse.egit.core.project.RepositoryMapping.getMapping(RepositoryMapping.java:219)
|
|
|
| Topic: Better credentials verification |
|---|
| Better credentials verification [message #782621] |
Mon, 23 January 2012 23:15 |
Luis Lara Messages: 5 Registered: January 2012 |
Junior Member |
|
|
HI JGit team!
I was looking for a way to verify credentials, I scrapped some code that seems to be working, but of course, I don't know the code, so I am sure, there is a better way to do this.
Thanks,
LC
public static boolean verifyCredentials(String remoteName, CredentialsProvider cred)
throws Exception {
FileRepositoryBuilder builder = new FileRepositoryBuilder();
File temp = File.createTempFile("temp", null);
Repository repository = builder.setGitDir(temp).readEnvironment().findGitDir().build();
for (WeakReference<TransportProtocol> ref : protocols) {
TransportProtocol proto = ref.get();
if (proto.canHandle(new URIish(remoteName), null, remoteName)) {
try {
Transport tx = proto.open(new URIish(remoteName), repository, remoteName);
tx.setCredentialsProvider(cred);
tx.openFetch().close();
return true;
} catch (Exception e) {
return false;
}
}
}
return false;
}
|
|
|
| Topic: Survey: key missing features |
|---|
| Survey: key missing features [message #779407] |
Sun, 15 January 2012 11:53 |
R Shapiro Messages: 184 Registered: June 2011 |
Senior Member |
|
|
I've been noticing that, while more and more developers are using egit, none of the ones I know are able to use it exclusively. Each requires some Git feature that isn't supported.
I don't know whether or not this is typical so I thought I'd try a little survey on this forum to find out.
Here are some features I run regularly from command-line Git since I can't do them in egit afaik. It's a pretty small list these days.
- Bundles: create and pull bundle files
- Stash
- Basic svn bridge support: svn fetch, svn rebase, svn dcommit
- GC
- Bisect
[Updated on: Sun, 15 January 2012 12:02] Report message to a moderator
|
|
|
| Topic: Jgit clone repository |
|---|
| Jgit clone repository [message #767281] |
Sat, 17 December 2011 09:37 |
marek.kratky Messages: 1 Registered: December 2011 |
Junior Member |
|
|
I'm trying to clone Git repository with JGit and I have problem with UnsupportedCredentialItem.
My code:
FileRepositoryBuilder builder = new FileRepositoryBuilder();
Repository repository = builder.setGitDir(PATH).readEnvironment().findGitDir().build();
Git git = new Git(repository);
CloneCommand clone = git.cloneRepository();
clone.setBare(false);
clone.setCloneAllBranches(true);
clone.setDirectory(PATH).setURI(url);
UsernamePasswordCredentialsProvider user = new UsernamePasswordCredentialsProvider(login, password);
clone.setCredentialsProvider(user);
clone.call();
It will occur Exception:
org.eclipse.jgit.errors.UnsupportedCredentialItem: ssh://git@github.com:22: Passphrase for C:\Users\Marek\.ssh\id_rsa at
org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider.get(UsernamePasswordCredentialsProvider.java:110)....
But if I delete file known_hosts in .ssh\ It will occur different Exception
org.eclipse.jgit.errors.UnsupportedCredentialItem: ssh://git@github.com:22: The authenticity of host 'github.com' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting?
at org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider.get(UsernamePasswordCredentialsProvider.java:110)....
Is there any possibility to type "yes" to that question or just skip it?
Thank you!
|
|
|
| Topic: question about ReceivePck |
|---|
| question about ReceivePck [message #759843] |
Wed, 30 November 2011 04:43 |
ZBruce Messages: 1 Registered: September 2011 |
Junior Member |
|
|
in class "org.eclipse.jgit.transport.ReceivePck"
line 1161:
--------------------------------------------
1161 case REJECTED_NONFASTFORWARD:
1162 r.append("non-fast forward");
1163 break;
--------------------------------------------
because have not a line between 1162 and 1163 " like
r.append(cmd.getMessage());"
user will not know detail about which reason is for this non-fast-forward is rejected
1> Gerrit server has configuration of not allow non-fast-forward request
2> have not the 'Force Push' privilege.
3> ...
so will you please review and think this is a issue.
or will you agree let me add a patch of it ?
expect to your feedback
thanks a lot in advance!!
|
|
|
| Topic: git pull command error |
|---|
| git pull command error [message #758736] |
Thu, 24 November 2011 07:44 |
dantart Messages: 1 Registered: November 2011 |
Junior Member |
|
|
Scenario:
Github repo with just created with one file of one line (the minimum to do the test)
Players:
Windows 7 + Eclipse + egit.core_1.1.0.201109151100-r (we have tried also with the last nightly build)
Linux + Git 1.7.7.3 (we have tried with 1.6 also)
Steps:
1) Any of players create the repository with one file and one line in it. Github shows correctly the stuff.
The last commit hash is now (for example): 1
2) Linux player changes the line, commits and pushes
The last commit hash is now: 2
3) Windows player pulls ... changes the line, commits and pushes
The last commit hash is now: 3
4) Linux can't pull anymore, it appears:
error: unable to find "hash 3"
fatal: object "hash 3" not found
BUG: Since the moment Windows player pushes the first time, the Linux players can't pull anymore.
Things to have in mind:
- github shows the 3 commits correctly, the last one the number 3
- in the linux: git fsck shows nothing at all ...
- if the linux delete the repo and clone it again, it pulls correctly up to "hash 3"
- if the linux do a reset to HEAD, it responds: HEAD is now at "hash 2"
In some way, linux git knows the HEAD is "hash 3", but it can't find it.
Thank you in advance
|
|
|
| Topic: Egit doesn't recognize user-created symbolic-refs |
|---|
|
| Topic: Zend Studio 8 text compare |
|---|
| Zend Studio 8 text compare [message #754569] |
Thu, 03 November 2011 06:32 |
dreyk Messages: 1 Registered: November 2011 |
Junior Member |
|
|
Hi.
I've installed EGIT to Zend studio 8 and it's totally awesome =)
But I can't manage to get one thing done right: when I try to compare a file with say Git HEAD, Zend Studio opens a standart text compare window which is very poorly colored.
In Window->Preferences->General->Appearance->Colors and Fonts I can see the "Git" folder, where all the colors are just fine, but I can also see the "Text Compare" folder where all the ugly colors are.
So, the question is: How do I open a git diff colored with nice git colors?
Thx in advance
|
|
|
| Topic: Synchronize view hangs |
|---|
| Synchronize view hangs [message #753339] |
Tue, 25 October 2011 12:27 |
Eike Stepper Messages: 4164 Registered: July 2009 |
Senior Member |
|
|
Hi,
We've updated to the latest EGit Nightly and still we can't synchronize properly. My newest attempt hangs at 80%. I've
attached a screenshot to this post (hoping that it won't cause HTML tags in the web forum).
Canceling the sync job does not work. It hangs and Eclipse must be restarted.
The following attempt to sync did not hang but ended very quickly. But it came up with more than 6000 outgoing changes
including 6 conflicts that we don't understand. no visible diffs are shown in the compare editor.
Are we doing something wrong?
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
| Topic: Synchronize view hangs |
|---|
| Synchronize view hangs [message #753340] |
Tue, 25 October 2011 12:27 |
Eike Stepper Messages: 4164 Registered: July 2009 |
Senior Member |
|
|
Hi,
We've updated to the latest EGit Nightly and still we can't synchronize properly. My newest attempt hangs at 80%. I've
attached a screenshot to this post (hoping that it won't cause HTML tags in the web forum).
Canceling the sync job does not work. It hangs and Eclipse must be restarted.
The following attempt to sync did not hang but ended very quickly. But it came up with more than 6000 outgoing changes
including 6 conflicts that we don't understand. no visible diffs are shown in the compare editor.
Are we doing something wrong?
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
| Topic: Commit Event Listener |
|---|
| Commit Event Listener [message #742158] |
Thu, 20 October 2011 04:28 |
Lars Ohlen Messages: 2 Registered: October 2011 Location: Sweden |
Junior Member |
|
|
Hi,
I have been playing with eGit for a day or so. I soon realized that my hooks are not executed while using eGit (implicit jGit) - simply because hooks are not yet implemented.
But I also realized that there are no extension points available so that I can extend or capture eveents (To me that is even 'worse' than not executing hooks)
Have someone been able to capture a commit event with some other technique?
|
|
|
| Topic: extracting deltas from a pack using jGit |
|---|
| extracting deltas from a pack using jGit [message #741503] |
Wed, 19 October 2011 11:40 |
madmarcos Messages: 1 Registered: October 2011 |
Junior Member |
|
|
Hi there,
I have an SSH passthrough between a Git client and server and can intercept the packfile on a "git push" from the client. Currently, I send the pack data through an ObjectDirectoryPackParser. The Parser requires the original loose objects in the object database and the parsing ends up created loose objects with the deltas applied to them. Nice, but not what I am after. I would really like to extract the deltas directly from the packfile in their pure "delta" form and analyze the deltas specifically.
Is there some other set of parsing objects in jGit that can do this?
Also: I am pretty set on using jGit to do this as my attempts to deflate packfiles manually created some bizarre deflate errors when decompressing large packfiles.
thanks for any help!
|
|
|
| Topic: Identify Changed Files |
|---|
| Identify Changed Files [message #735813] |
Wed, 12 October 2011 15:38 |
andreas.sinz Messages: 1 Registered: October 2011 |
Junior Member |
|
|
Hello,
I'm trying to get all files, which has been changed between two commits.
What is the easiest Way to get an AbstractTreeIterator out of an ObjectID?
D3xter
|
|
|