Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Code Recommenders » How to change git url for "Share Snippets"
How to change git url for "Share Snippets" [message #1460356] Mon, 03 November 2014 13:32 Go to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
Hello

I would like to change the url of the git repo for sharing snippets. The reason is that for some to me unkown reason I can't use https:// repo urls with git behind our firewall und proxy configuration.
Failed to push snippets to remote Git repo. 
Reason: https://git.eclipse.org/r/recommenders/org.eclipse.recommenders.snipmatch.snippets.git: 
cannot open git-receive-pack

When contributing to other projects I fall back to ssh:// which will probably be
ssh://<user>@git.eclipse.org:29418/recommenders/org.eclipse.recommenders.snipmatch.snippets.git
for the snippets repo, correct?

Is it possible to wire "Share Snippets" to use another repo url?

Looking forward to sharing! Smile

Thanks
Christoph

[Updated on: Mon, 03 November 2014 13:33]

Report message to a moderator

Re: How to change git url for "Share Snippets" [message #1460371 is a reply to message #1460356] Mon, 03 November 2014 13:53 Go to previous messageGo to next message
Johannes Dorn is currently offline Johannes DornFriend
Messages: 61
Registered: June 2013
Member
Hi Christoph,

Unfortunately, you cannot change the URL for the default repository.

You can however create a new one which works over SSH.
1. Open the Snippets View
2. Right-Click on the "Eclipse Code Recommenders Snippet Repository" repository and select "Disable Repository"
3. Right-Click again and select "Add Repository"
4. Choose The "Git-Based Snippet Repository"
5. Enter any name, for example "Eclipse Code Recommenders Snippet Repository - SSH"
6. As Fetch URI enter: http://git.eclipse.org/gitroot/recommenders/org.eclipse.recommenders.snipmatch.snippets.git
7. As Push URI enter "ssh://<username>git.eclipse.org/r/recommenders/org.eclipse.recommenders.snipmatch.snippets.git"
8. As Branch prefix enter "refs/for"


This will push to the same repository over SSH rather than HTTPS.
Make sure that you never activate both the default (HTTPS push) repos and the new (SSH push) repo at the same time.

I hope this helps.
Re: How to change git url for "Share Snippets" [message #1460395 is a reply to message #1460371] Mon, 03 November 2014 14:24 Go to previous message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
works great Smile
Previous Topic:Malware in http://eclipse.mirror.kangaroot.net/recommenders/models/luna/jre?
Next Topic:[snipmatch] branch format-5?
Goto Forum:
  


Current Time: Fri Apr 19 15:27:37 GMT 2024

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

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

Back to the top