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

Make pull return non-zero error code when some downloads failed #2237

Merged
merged 6 commits into from
May 19, 2017
Merged

Make pull return non-zero error code when some downloads failed #2237

merged 6 commits into from
May 19, 2017

Conversation

seth2810
Copy link

@ttaylorr
Copy link
Contributor

@seth2810 this looks good. In terms of forcing an error to occur during command execution, you can instruct the Git server we run during tests to return an error by using a special "contentHandler".

  • You can add the content handler here, and then
  • Check for presence of the content handler here.

@technoweenie
Copy link
Contributor

@ttaylorr I'm tweaking the error message and fixing this up to get this out in today's release.

@seth2810: Thanks for getting this started!

@ttaylorr
Copy link
Contributor

@ttaylorr I'm tweaking the error message and fixing this up to get this out in today's release.

@technoweenie sounds great, thanks!

@technoweenie
Copy link
Contributor

@seth2810: your pull test had the right mindset, but it was using some undefined local variables: $reponame, $b_oid, and $contents_oid. I fixed the test by declaring them in the individual test, and fixing the cd ../clone line too.

@ttaylorr's idea would've worked too, but I prefer tests that don't rely on special test server behavior if we can avoid it.

@ttaylorr ttaylorr merged commit 498d401 into git-lfs:master May 19, 2017
ttaylorr added a commit that referenced this pull request May 19, 2017
ttaylorr added a commit that referenced this pull request May 19, 2017
Backport #2237 for v2.1.x: Make pull return non-zero error code when some downloads failed
@seth2810 seth2810 deleted the pull-errors branch May 20, 2017 11:06
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.

None yet

3 participants