| Summary: | can't manually set user.email and user.name in git repo configurations if they were empty | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Rafael Chaves <eclipse> |
| Component: | Git | Assignee: | Bogdan Gheorghe <gheorghe> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ahunter.eclipse |
| Version: | 2.0 | ||
| Target Milestone: | 7.0 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Rafael Chaves
I understand the behavior better now. This happens if your repository didn't have the git user.email and user.name set yet. Steps: 1) ensure your global user *profile* has blank user name and email address under Git config. 2) clone a repository - it will result in a repo config that doesn't have those attributes set 3) try to edit the repository git configuration to set user.name and user.email - you can't, the UI offers no editing icon as it does when the fields already have values. There is a way to do it, but it's cumbersome. - Click the "View All" link in the Configuration section. - Now you see a list of all the entries and there is a "New Configuration Entry" button. - click that button and you can type in a key/value, where key is user.name, etc. I actually had tried that, but that didn't work, I figured because the user.name and user.email entries already exist. Did that work for you? oh...sorry. I didn't try it because mine are already set. (And I didn't want to delete them and then potentially be stuck with the problem...) In step 2 above: 2) clone a repository - it will result in a repo config that doesn't have those attributes set Note the attributes actually appear to exist, they just don't have any values. That is what seems to trigger the issue with non-editable/non-removable fields. If they didn't exist, Susan's workaround would work. It seems you can't recreate the issue by setting the fields to empty (or deleting and recreating them with empty values), as the UI seems to reject creating/setting the field as/to empty. You need to perform the steps I describe in comment 1 above. This makes me think there's a bug in the 2.0 release that would allow the repo to get in this state. I don't recall ever having this issue in the past, at least for the eclipse ssh repositories, the info is derived from the clone URL (I guess, because I don't ever remember providing them). I saw this (blank user.mail/user.name) cloning my own repositories on bitbucket, like this: https://abstratt@bitbucket.org/abstratt/cloudfier-examples.git but also when cloning other people's "read-only" repos from github. This problem was resolved in the latest git repository page in Orion 7.0. Select the git configuration (the wrench on the upper right) and you can add the configuration entries for user.name and user.email if they are missing. |