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

Fetch remote urls #1451

Merged
merged 5 commits into from Aug 16, 2016
Merged

Fetch remote urls #1451

merged 5 commits into from Aug 16, 2016

Conversation

technoweenie
Copy link
Contributor

This adds support for pushing and pulling LFS objects with a raw remote url. This was originally submitting in #1085, and updated for the current master branch. This also adds tests.

@@ -37,12 +37,17 @@ func NewEndpointFromCloneURLWithConfig(url string, c *Configuration) Endpoint {
return e
}

if strings.HasSuffix(url, "/") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we already have path imported, would it be possible to use path.Clean here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could, but it does a lot more stuff besides just chomping the trailing / that we don't need. These urls either come from the git remote config (remote.origin.url), or from custom lfs config (lfs.url, remote.origin.lfsurl).


# LFS object not downloaded, pointer in working directory
refute_local_object "$contents_oid"
ack "$content_oid" a.dat
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think the containers that Travis gives us have ack installed.

@ttaylorr
Copy link
Contributor

After you switch out ack for grep, I think this is ready to merge. 😄

@technoweenie technoweenie merged commit 9c17eb1 into master Aug 16, 2016
@technoweenie technoweenie deleted the fetch-remote-urls branch August 16, 2016 19:08
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

2 participants