Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Enable transfer progress#325

Merged
johnhaley81 merged 10 commits intomasternodegit/nodegit:masterfrom
enable-transfer-progressnodegit/nodegit:enable-transfer-progressCopy head branch name to clipboard
Feb 19, 2015
Merged

Enable transfer progress#325
johnhaley81 merged 10 commits intomasternodegit/nodegit:masterfrom
enable-transfer-progressnodegit/nodegit:enable-transfer-progressCopy head branch name to clipboard

Conversation

@tbranyen
Copy link
Member

@tbranyen tbranyen commented Dec 9, 2014

No description provided.

@johnhaley81 johnhaley81 added this to the 0.3.0 milestone Jan 19, 2015
@tbranyen tbranyen force-pushed the enable-transfer-progress branch from c565991 to bd58c6e Compare January 28, 2015 18:46
@johnhaley81
Copy link
Collaborator

This might need #395 before it works correctly.

@tbranyen
Copy link
Member Author

During my testing it seemed to work
On Feb 10, 2015 12:05 PM, "John Haley" notifications@github.com wrote:

This might need #395 #395
before it works correctly.


Reply to this email directly or view it on GitHub
#325 (comment).

@johnhaley81
Copy link
Collaborator

It should break on windows since msbuild will init int values to not-zero. Which I think would cancel the transfer as soon as it gets that value back. #388 is also fixing that specific value but for a more robust fix #395 will have to be resolved.

@johnhaley81 johnhaley81 force-pushed the enable-transfer-progress branch from bd58c6e to fc0b850 Compare February 10, 2015 22:09
@tbranyen tbranyen force-pushed the enable-transfer-progress branch 2 times, most recently from 18d90b8 to c581d25 Compare February 17, 2015 18:02
@tbranyen
Copy link
Member Author

Rebased in latest.

@maxkorp
Copy link
Collaborator

maxkorp commented Feb 17, 2015

Interesting, any idea why the HTTP clone test skipped?

@tbranyen
Copy link
Member Author

@maxkorp there is a bug/issue in libgit2 about cert checks and http->https redirection. our http test is not really http so we need to rename/fix.

@maxkorp
Copy link
Collaborator

maxkorp commented Feb 17, 2015

Gotcha! Yeah, described here: 25d7d88

@maxkorp
Copy link
Collaborator

maxkorp commented Feb 17, 2015

How long is the fetch taking? That callback is going to get called after a minimum of half a second. If the fetch is taking less time than that, it won't get called.

https://github.com/libgit2/libgit2/blob/a7fa970f8b216b79a5d237a9d87ac88e2371ae46/src/pack-objects.c#L62

https://github.com/libgit2/libgit2/blob/a7fa970f8b216b79a5d237a9d87ac88e2371ae46/src/pack-objects.c#L245

@johnhaley81
Copy link
Collaborator

Additionally, if you add a new remote that's pointed to the same url then libgit2 will know it downloaded the packs already and won't go out to download them again. I'm going to get nodegit/test2 up and have it much further ahead (commit wise) than nodegit/test so that we can really get some download data going for the test to work.

@maxkorp
Copy link
Collaborator

maxkorp commented Feb 18, 2015

Regarding statelessness, would it make sense to then delete that remote and do a git GC afterwards, to make sure the packfiles get nuked?

Edit: Or you know, that could be in an existing commit that github just wasn't showing me >.<

@johnhaley81 johnhaley81 force-pushed the enable-transfer-progress branch from c85e112 to 3a81d9d Compare February 19, 2015 15:05
johnhaley81 added a commit that referenced this pull request Feb 19, 2015
@johnhaley81 johnhaley81 merged commit 801fc83 into master Feb 19, 2015
@johnhaley81 johnhaley81 deleted the enable-transfer-progress branch February 19, 2015 15:32
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.