Community
Participate
Working Groups
Hi Colleagues, We want to submit the source of a new project in webtools.incubator. We do want to use a new repository with path: webtools/org.eclipse.webtools.incubator.sieditor.git We do need HTTP read/write access to this repository. Commiters of webtools.incubator that will need to access it: Dimitar Tenev dimitar.tenev@sap.com Georgi Konstantinov georgi.konstantinov@sap.com Nevena Manova nevena.manova@sap.com Emil Simeonov emil.simeonov@sap.com Dimitar Donchev dimitar.donchev@sap.com IPZilla waiting code contribution: https://dev.eclipse.org/ipzilla/show_bug.cgi?id=4454 Please let me know if you need some more information. Best regards, Dimitar
The webtools incubator project already has a Git repository. http://git.eclipse.org/c/webtools/org.eclipse.webtools.incubator.git/ The name of that repo would seem to imply that all the webtools incubator code would go into it. Can you please discuss with your project lead and/or PMC to ensure the Git container will be properly structured?
Denis, I am mentoring the committers in this WTP Incubator Project from SAP side. I am aware that there is a git repository already created for the WTP Incubator, but advised them to request one dedicate just for their own project. I gave this advice because: 1) I am not happy with the current structure of the wtp.incubator.git repo. In this repository, every project seems to be in different branch. Including new project there means creating new branch. This is not quite nice in terms of git best practices. 2) This wiki http://wiki.eclipse.org/Git/Migrating_to_Git#Plan_and_structure_your_Git_space suggests that each project component should be placed in a different git repo. Therefore, I see it more natural to have new git repo for a new WTP Incubator project, than create new branch in an existing one.
(In reply to comment #2) > Denis, I am mentoring the committers in this WTP Incubator Project from SAP > side. I am aware that there is a git repository already created for the WTP > Incubator, but advised them to request one dedicate just for their own project. > > I gave this advice because: > 1) I am not happy with the current structure of the wtp.incubator.git repo. > In this repository, every project seems to be in different branch. Including > new project there means creating new branch. This is not quite nice in terms of > git best practices. > 2) This wiki > http://wiki.eclipse.org/Git/Migrating_to_Git#Plan_and_structure_your_Git_space > suggests that each project component should be placed in a different git repo. > Therefore, I see it more natural to have new git repo for a new WTP Incubator > project, than create new branch in an existing one. We have a couple of options here. Create a Branch in the existing WTP incubator project and import the items into that new branch. We went with the new branch because otherwise you get the entire code for everything even projects you don't like. The better option is probably to create isolated git repos for the new projects instead. Which is something we are considering doing to better separate the Vex, Xquery, and other projects. This way you don't get all the code from the other projects if you aren't interested in them. It also might make graduation easier later on.
To me, webtools.incubator is one project, not many. I guess I simply don't want to be in the business of setting up repos for incubator projects, when the projects themselves can do that :-) What we can do is create a git.eclipse.org/webtools/incubator _directory_ to which the incubator group has write access. That would allow you to create all the Git repos you want without needing webmaster intervention. Does that sound acceptable?
(In reply to comment #4) > To me, webtools.incubator is one project, not many. I guess I simply don't want > to be in the business of setting up repos for incubator projects, when the > projects themselves can do that :-) > > What we can do is create a git.eclipse.org/webtools/incubator _directory_ to > which the incubator group has write access. That would allow you to create all > the Git repos you want without needing webmaster intervention. > > Does that sound acceptable? Yeah, that would work. The issue is that the way git works is vastly different from CVS, so it isn't as practical to necessarily have everything in one repository. Many smaller repositories for the components in the project may be the better way for this particular portion at eclipse. Other projects may approach it differently.
(In reply to comment #4) > Does that sound acceptable? Sounds perfect :-)
Hi Denis, When we could have this directory created? Best regards, Dimitar
I have created /gitroot/incubator for you.
Thanks Denis. I actually found you created the following directory: /gitroot/webtools/incubator/
Yes, sorry, that's what I meant.
Hi Denis, I can login to git.eclipse.org via ssh, but I do not have permissions to execute shell commands. Can you give me such rights? I did not see the option to request shell access via portal.eclipse.org. Best regards, Dimitar
(In reply to comment #11) > > ... I did not see the option > to request shell access via portal.eclipse.org. I've never seen it either :) ... but, just in case ... did you login to portal with your committer ID? (It also accepts bugzilla IDs ... but you "see" more with committer ID (I think) ... so just thought I'd ask).
Hi David, Yes :) I did use my commiter ID - dtenev Best regards, Dimitar
> I can login to git.eclipse.org via ssh, but I do not have permissions to > execute shell commands. For security reasons, we try very hard to limit the number of people who have shell accounts. If you only need it to create a repo, can you ask someone on your project who does have a shell account to create it for you?
Dave, can you help here? You are both WTP Incubator committer and a Git expert :-)
(In reply to comment #15) > Dave, can you help here? > You are both WTP Incubator committer and a Git expert :-) Yeah, but it probably won't be until tomorrow or Friday before I get to it. Dave
(In reply to comment #15) > Dave, can you help here? > You are both WTP Incubator committer and a Git expert :-) I've created an empty repo in git/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git You will need to run the appropriate cvs2git script to load the repo with your items if you want to maintain complete history from the old project.
Dave, I am not sure how you created the repo, but it looks that it does not work for us. As far as I can see in the shell, the git repo structure is created under /webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/.git instead of under /webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/ Mind the additional .git subfolder. Nevertheless, I cannot access to repository using EGit neither by connecting to http://git.eclipse.org/c/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/.git nor by connecting to http://git.eclipse.org/c/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git We are in quite helpless situation. I have shell access to git.eclipse.org, but I am not a WTP Incubator committer, and therefore my shell user is not part of the webtools.incubator group. On the other hand all SAP committers in WTP Incubator are not granted with shell access. I think we can easily come out of this situation if the following is done: 1) the currently created repo is completely removed 2) a new empty directory is created: /webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/ 3) the user ownership of the directory is changed to my user (kraev) This way I can help the SAP committers in WTP Incubator to setup the git repo and make any necessary configuration adjustments. Denis, Dave, David, could you do this favor for us?
Right now this is an empty repo. Let me do some testing with it and see what I can come up with. I just created the repo by doing a: git init Statement to create an empty repo. (In reply to comment #18) > Dave, I am not sure how you created the repo, but it looks that it does not > work for us. > > As far as I can see in the shell, the git repo structure is created under > > /webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/.git > > instead of under > > /webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/ > > Mind the additional .git subfolder. > Nevertheless, I cannot access to repository using EGit neither by connecting to > > > http://git.eclipse.org/c/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/.git > > nor by connecting to > > > http://git.eclipse.org/c/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git > > We are in quite helpless situation. I have shell access to git.eclipse.org, but > I am not a WTP Incubator committer, and therefore my shell user is not part of > the webtools.incubator group. On the other hand all SAP committers in WTP > Incubator are not granted with shell access. I think we can easily come out of > this situation if the following is done: > 1) the currently created repo is completely removed > 2) a new empty directory is created: > /webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/ > 3) the user ownership of the directory is changed to my user (kraev) > > This way I can help the SAP committers in WTP Incubator to setup the git repo > and make any necessary configuration adjustments. > > Denis, Dave, David, could you do this favor for us?
I've removed the repo that Dave created, and have created http://git.eclipse.org/c/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git It is writable by the webtools.incubator group.
Sorry Dave, I think I just undid what you did here. I'll butt out now.
(In reply to comment #21) > Sorry Dave, I think I just undid what you did here. I'll butt out now. Feel free to butt in as I tried following the instructions on: http://wiki.eclipse.org/Git#Committing_and_pushing But when I try to clone the empty repo, I get the following: dcarver@carver-intalio:~/OpenSource$ git clone git://git.eclipse.org/gitroot/webtool/incubator/org.eclipse.webtools.incubator.sieditor.git Initialized empty Git repository in /home/dcarver/OpenSource/org.eclipse.webtools.incubator.sieditor/.git/ fatal: The remote end hung up unexpectedly Basically what needs to happen Denis is that the cvsroot/webtools/incubator/incubator/org.eclipse.jpt Needs to go into this new repo.
Dave, there's an 's' in webtools :) [droy@ef-denis stuff]$ git clone git://git.eclipse.org/gitroot/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git Initialized empty Git repository in /home/droy/stuff/org.eclipse.webtools.incubator.sieditor/.git/ warning: You appear to have cloned an empty repository. [droy@ef-denis stuff]$ Dimitar, don't forget to use git+ssh is you intend on pushing. git clone ssh+git://userid@git.eclipse.org/gitroot/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git I'll close this as fixed, since you should be all set.
stupid freaking typos...murphy strikes again.
Thanks! I was able to connect using EGit as an anonymous user via HTTP.
Hi Denis, Fetch is fine through https, but what about push? Can I push to this repository using https? Best regards, Dimitar
Here is the error that I get on executting push over https: -------- git.exe push --progress "https://dtenev@git.eclipse.org/gitroot/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git" master:master error: Couldn't resolve host 'git.eclipse.org' while accessing https://dtenev@git.eclipse.org/gitroot/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/info/refs fatal: HTTP request failed ------- Am I doing something wrong? Best regards, Dimitar
The above errors seems to be from my proxy, as Kaloyan guessed. I tried also though Eclipse - EGit. There the error is different (see the attached screenshot.gif) Any ideas? Best regards, Dimitar
Created attachment 181375 [details] Error through Eclipse EGit
(In reply to comment #27) > Here is the error that I get on executting push over https: > -------- > git.exe push --progress > "https://dtenev@git.eclipse.org/gitroot/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git" > master:master > > error: Couldn't resolve host 'git.eclipse.org' while accessing > https://dtenev@git.eclipse.org/gitroot/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/info/refs > > fatal: HTTP request failed > ------- > > Am I doing something wrong? > > Best regards, > Dimitar For command line git, do you have your proxy configured: ; Proxy settings [core] gitproxy="proxy-command" for kernel.org gitproxy=default-proxy ; for all the rest http://www.kernel.org/pub/software/scm/git/docs/git-config.html
Hi Dave, I have setup the proxy, and receive the error that is in the attachment "Error through Eclipse EGit". This is the error which I get when I push through https. 1. What does the error "git-receive-pack not permitted" mean? 2. Can you create a master branch in the empty remote repository (org.eclipse.webtools.incubator.sieditor.git), so we could fetch it? Best regards, Dimitar
(In reply to comment #31) > Hi Dave, > > I have setup the proxy, and receive the error that is in the attachment "Error > through Eclipse EGit". > This is the error which I get when I push through https. > > 1. What does the error "git-receive-pack not permitted" mean? https://git.wiki.kernel.org/index.php/GitFaq#Error_diagnostic It looks like either locally or on the eclipse serviers there are some permission rights not set correctly. > 2. Can you create a master branch in the empty remote repository > (org.eclipse.webtools.incubator.sieditor.git), so we could fetch it? I'll try and run an import of the existing sid editor code locally from cvs and then push that to the git repo into master. Should have this done by the end of the day.
Denis a couple of problems. 1. I've cloned locally the complete CVS module for the jpt editor from the incubator/org.eclipse.jpt module, and have a local git repo that is setup correctly. However when I try to push this master to populate the empty repo on git.eclipse.org I get the following error. remote: remote: error: git.eclipse.org does not know this committer, remote: or this is not you: sdimov. remote: remote: denied: You (d_a_carver@yahoo.com) cannot push changes that were not committed by you. Please fix your repository, and see http://wiki.eclipse.org/Git for information on configuring your Git environment. remote: remote: error: hook declined to update refs/heads/master Seems your hook is rejecting my push of the branch back even though this repo is currently empty. 2. So to get around this, I tried following the instructions from: http://wiki.eclipse.org/Git/Migrating_to_Git But when trying to execute the git-cvsimport I get an error saying: Can't execute "cvsps" No such file or directory. So basically we need the following git cvsimport command run. git cvsimport -v -p -x -o master -d :local:/home/data/cvs/webtools/ incubator/org.eclipse.jpt -C ./org.eclipse.webtools.incubator.sieditor.git In the webtools/incbuator directory.
Dave, I think you get confused with the incubating projects driven by SAP. The JPA Editor is indeed in CVS, but we are currently not trying to migrate it to Git. This Git repository is requested for the Service Interface and Data Types Editors project, which is completely different project. Dimitar is trying to push the initial contribution to the git repository. There is nothing to migrate from CVS.
(In reply to comment #34) > Dave, I think you get confused with the incubating projects driven by SAP. > > The JPA Editor is indeed in CVS, but we are currently not trying to migrate it > to Git. > > This Git repository is requested for the Service Interface and Data Types > Editors project, which is completely different project. > > Dimitar is trying to push the initial contribution to the git repository. There > is nothing to migrate from CVS. Okay, that is definitely clearing things up then. Let me push a README text file the blank git repo then.
Alright, I have a master branch now in the repo. There is one file called README. I used the ssh: option to push the branch there.
When it rains it pours, it looks like I accidently deleted this repo! With this the new good repository should be: webtools/incubator/org.eclipse.webtools.incubator.sieditord.git There is a branch file there and everything should be set. Denis can you clean up the extraneous repos that are in their and rename the existing one to be correct. Sorry, this is what I get for doing this with a raging head cold.
Dave, thanks for this new setup. We are able to checkout the master branch with the README file. Nevertheless, when we try to push we always get the error from the attached screenshot. We try to push via https. The ssh is not an option for us, because of the firewall restrictions. Is it possible to push via https at all? Is it possible for users behind firewall to push to git.eclipse.org, or only read-only access is available via http/https?
(In reply to comment #38) > Dave, thanks for this new setup. We are able to checkout the master branch with > the README file. > > Nevertheless, when we try to push we always get the error from the attached > screenshot. > > We try to push via https. The ssh is not an option for us, because of the > firewall restrictions. > > Is it possible to push via https at all? > Is it possible for users behind firewall to push to git.eclipse.org, or only > read-only access is available via http/https? I think the syntax is wrong for https. See supported url formats: http://www.kernel.org/pub/software/scm/git/docs/git-push.html Gits https protocol doesn't support username expansion.
> Denis can you clean up the extraneous repos that are in their and rename the > existing one to be correct. Can you be a little more specific about what you need done? -M.
(In reply to comment #40) > > Denis can you clean up the extraneous repos that are in their and rename the > > existing one to be correct. > > Can you be a little more specific about what you need done? > > -M. Sure: Remove from webtools/incubator directory: * org.eclipse.webtools.incubator.sieditor.git * org.eclipse.webtools.incubator.sieditori.git Optionally: * Rename org.eclipse.webtools.incubator.sieditord.git to org.eclipse.webtools.incubator.sieditor.git That should get everything back in shape.
Ok, done. -M.
Hi Dave, I have tried using both remote: https://git.eclipse.org/c/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/ and https://dtenev@git.eclipse.org/c/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/ The errors are the same for both tries. I have attached above the screenshots for both errors. Can you please do try pushing something into this repo via HTTPS? I do not know a way to solve the issue. Best regards, Dimitar
Created attachment 181623 [details] Error using https without user
Created attachment 181624 [details] Error using https with user
(In reply to comment #45) > Created an attachment (id=181624) [details] > Error using https with user eGit is just now adding support of https. Try from git command line: https://git.eclipse.org/... Note git DOES NOT support a https://username@git.eclipse.org url format. Git will prompt you for the username and password (at least in my tests with http it has).
Hi Dave, First thanks for the guidelines. I used command line git git version 1.7.3.1.msysgit.0 I did commit locally with my commiter's user name from dev.eclipse.org: dtenev Here I stuck on another error message: I042080@SOFD60196399A /d/development/git/org.eclipse.webtools.incubator.sieditor (master) $ git push XML error: not well-formed (invalid token) error: no DAV locking support on https://git.eclipse.org/c/webtools/incubator/or g.eclipse.webtools.incubator.sieditor.git/ fatal: git-http-push failed I would also say that executing: git push Did NOT asked me for user name and password. I found that this error means that there is some authentication problem on the server. See "Troubleshooting" section: http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt Here is how my .gitconfig file looks like: --------------------------------------------- [core] autocrlf = true safecrlf = false [http] proxy = http://proxy:8080 [remote "origin"] url = https://git.eclipse.org/c/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/ pushurl = https://git.eclipse.org/c/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/ push = +refs/heads/*:refs/remotes/origin/* fetch = +refs/heads/*:refs/remotes/origin/* [user] name = dtenev email = dimitar.tenev@sap.com --------------------------------------------- I did executed "curl" from command line to see whether there is a connection, and it seems that there is a connection (see the attached curl.txt) What I could do now? I have no clue. Best regards, Dimitar
Created attachment 181709 [details] curl command execution result.
(In reply to comment #48) > Created an attachment (id=181709) [details] > curl command execution result. This is something that Denis and Matt will need to look into since it appears to be server configuration related.
Hi Denis, Matt, Can you please take a look into the issue? I can not contribute project's source code to the git repository. It is quite a blocker for us. Best regards, Dimitar
> Can you please take a look into the issue? It's on my list for today. -M.
I think the issue here is that we don't enable https committ access by default(we use ssh). Given comment 38, I'll take this bug as a request to add the https access to this repo. You should be all set now. -M.
Hi Matt, I still experience the issue in "Comment 47". Can you please check whether my user: dtenev, with email: dimitar.tenev@sap.com) has needed rights to depo/directory? https://git.eclipse.org/c/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/ Best regards, Dimitar
As far as I can tell your in the right group, and there aren't any extended ACLs that are messing with the permissions. Is there another network you can test from(home/school/cafe)? -M.
Hi Matt, I did try to push the files from home. Unfortunately the issue is the same - Comment 47. Here are the results: 1. Here is my .gitconfig -------------- [core] autocrlf = true safecrlf = false [remote "origin"] url = https://git.eclipse.org/c/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/ pushurl = https://git.eclipse.org/c/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git/ push = +refs/heads/*:refs/remotes/origin/* fetch = +refs/heads/*:refs/remotes/origin/* [user] name = dtenev email = dimitar.tenev@sap.com -------------- 2. Here is what I get from commannd prompt git: -------------------- ditenev@DITENEV-PC /d/git/org.eclipse.webtools.incubator.sieditor (master) $ git push XML error: not well-formed (invalid token) error: no DAV locking support on https://git.eclipse.org/c/webtools/incubator/or g.eclipse.webtools.incubator.sieditor.git/ fatal: git-http-push failed ditenev@DITENEV-PC /d/git/org.eclipse.webtools.incubator.sieditor (master) $ -------------------- 3. I did executed curl, and the output is attached as curl_from_home.txt I got no clue. What can I do now? I will appreciate any suggestions. Best regards, Dimitar
Created attachment 182188 [details] curl command execution result from home.
When I try this remotely it works, but my .git/config is different: [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = https://committer_id@git.eclipse.org/gitroot/webtools/incubator/org.eclipse.webtools.incubator.sieditor.git [branch "master"] remote = origin merge = refs/heads/master -M.
HURRAH! Thanks Matt! Using settings from your .gitconfig everithing worked fine :))) Thanks to all of you. SIE/DTE sources are in incubator :) Best regards, Dimitar
I am setting this issue to resolved.
Just a suggestion, the appropriate configuration should be added to the wiki so that others can benefit if they need to connect via https as a committer.
Hi Dave, You are correct :) I have added the .gitconfig contents into the following wiki topic: http://wiki.eclipse.org/Git#Setting_up_https_for_pushing Best regards, Dimitar