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

Uses Libgit2sharp to clone repos. Fixes #29 #31

Merged
merged 4 commits into from
Dec 1, 2014

Conversation

AmadeusW
Copy link
Member

No longer downloads and unzips a zip file.
This fixes the issue with path being too long (#29)
Also cleans up the code in UploadController a little.

No longer downloads and unzips a zip file.
Also cleans up the code in UploadController a little.
@yannisgu
Copy link
Contributor

Not sure if Libgit2sharp supports, but consider only clone the actual commit and not the whole repo (including history):

git clone --depth 1 https://github.com/CodeConnect/SourceBrowser.git

@AmadeusW
Copy link
Member Author

Good idea @yannisgu, I've posted on libgit2sharp issue about shallow clones where two other people showed interest in implementing it in libgit2 (more links in my comment @ libgit2sharp)

@@ -24,14 +25,20 @@ public ActionResult Submit(string githubUrl)
var retriever = new GitHubRetriever(githubUrl);
if (!retriever.IsValidUrl())
{
// TODO: Return error
ViewBag.Error = "Invalid GitHub repository. Please try another";
ViewBag.Error = "Make sure that the provided path is valid.";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the message should indicate this has to be a GitHub repository.

JoshVarty added a commit that referenced this pull request Dec 1, 2014
Uses Libgit2sharp to clone repos. Fixes #29
@JoshVarty JoshVarty merged commit d040bd7 into CodeConnect:master Dec 1, 2014
@AmadeusW AmadeusW deleted the libgit2 branch December 22, 2014 01:51
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

Successfully merging this pull request may close these issues.

3 participants