Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone URL in browser? #133

Open
rbren opened this issue Jun 9, 2017 · 10 comments
Open

Clone URL in browser? #133

rbren opened this issue Jun 9, 2017 · 10 comments

Comments

@rbren
Copy link

rbren commented Jun 9, 2017

Sorry if there's something I'm missing here...

I'd like to clone git repos in the browser by URL. I understand there are CORS issues, but I can set up a proxy.

I've got GitHub working fine (using js-github) but can't figure out how to work with non-GitHub URLs. I found git-web-platform, but it doesn't seem to be published.

Any pointers?

Thanks!
-Bobby

@rdzakmic
Copy link

I got the same issue.

@creationix
Copy link
Owner

So you just want real only of public repos that allow cloning over the smart http protocol? What about the plain TCP git:// protocol?

@rdzakmic
Copy link

In my case just http protocol.

@creationix
Copy link
Owner

Back when I was working on this, I had written this extension that added CORS to github response headers . https://github.com/creationix/corson

Now to see if I can find the repo that powered the test site.

@creationix
Copy link
Owner

Found it. See if this helps. https://github.com/creationix/clone-test

@rdzakmic
Copy link

Thanks, i'll give it a try.

@easrng
Copy link

easrng commented Nov 25, 2020

Is this issue up to date? I need to do a smart HTTPS clone, and am wondering how.

@creationix
Copy link
Owner

As far as I know nothing has changed and github still doesn't send the headers required for your browser to talk to it.

@easrng
Copy link

easrng commented Dec 6, 2020

As far as I know nothing has changed and github still doesn't send the headers required for your browser to talk to it.

I'm not actually cloning from github, and I am planning on running this on a runtime where CORS is not an issue.

@Sleepful
Copy link

this is super old lol, but if you got a server you can proxy the request between github and the browser, so you manage the headers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants