Community
Participate
Working Groups
Build Identifier: 20110218-0911 I made myself a portable development environment on a USB drive, consisting of Eclipse + xampp + my project files. What I did: Installed Egit > created repository for project from within Eclipse > added files > Team Commit > Initial commit dialog asks for name/email, I enter the info. What I expect: - The ensuing Commit Dialog should show the name and email that I entered appear in the author/committer fields. - I should be able to allocate the default .gitconfig file wherever i'd like, and to change default .gitconfig location if necessary. What went wrong: - The name and email that I entered does not appear in the author/committer fields. Rather, my <windows user name> and <windows user name>@<windows localhost name> appear as the name/email in those fields. - In Eclipse preferences > Team > Git > Configuration > User Setting AND System Setting tabs, The "Location" field for default .gitconfig is greyed out, not changeable. User Setting tab shows "C:\cvs_home\.gitconfig" and System Setting tab shows "Unknown" --------------------- Additional Notes: --------------------- 1. I have limited permissions on this computer I was using. 2. Here is some Eclipse error log: - When entering my name/email in the initial commit dialog: java.io.IOException: Creating directories for c:\cvs_home failed at org.eclipse.jgit.util.FileUtils.mkdirs(FileUtils.java:219) at org.eclipse.jgit.storage.file.LockFile.lock(LockFile.java:126) at org.eclipse.jgit.storage.file.FileBasedConfig.save(FileBasedConfig.java:174) ... - when trying to edit Eclipse preferences > Team > Git > Configuration > User Setting AND System Setting tabs java.io.IOException: Creating directories for c:\cvs_home failed at org.eclipse.jgit.util.FileUtils.mkdirs(FileUtils.java:219) at org.eclipse.jgit.storage.file.LockFile.lock(LockFile.java:126) at org.eclipse.jgit.storage.file.FileBasedConfig.save(FileBasedConfig.java:174) java.lang.NullPointerException at org.eclipse.jgit.storage.file.LockFile.<init>(LockFile.java:112) at org.eclipse.jgit.storage.file.FileBasedConfig.save(FileBasedConfig.java:173) ... - other Error occurred computing diffs java.lang.RuntimeException: java.io.IOException: Unknown repository format at org.eclipse.jgit.storage.file.FileRepository.getConfig(FileRepository.java:323) at org.eclipse.jgit.storage.file.FileRepository.getConfig(FileRepository.java:97) at org.eclipse.egit.core.ContainerTreeIterator.<init>(ContainerTreeIterator.java:86) ... 3. I tried editing the .git/config file but also having problems there; [core] repositoryformatversion = 0 filemode = false logallrefupdates = true autocrlf = false [user] email = "myemail@myhost.com" name = "myName" Only the first value in the [user] section (in the above example, the email) works, the subsequent values (in the above example name) don't seem to work, the <windows user name> shows up instead. Vice versa if i put first name then email, the name works but <windows user name>@<windows localhost name> appears as the email. Workaround: Have to manually correct the name/email at every commit... :( Reproducible: Always Steps to Reproduce: What I did: 1. Extracted Eclipse onto USB drive 2. Opened Eclipse > Updated Eclipse > Installed Egit > created repository for project from within Eclipse > added files > Team Commit > Initial commit dialog asks for name/email 3. I enter the info and Clicked ok
Still present in 1.2.