Skip to content

Fetch remote urls - #1451

Merged
technoweenie merged 5 commits into
masterfrom
fetch-remote-urls
Aug 16, 2016
Merged

technoweenie merged 5 commits into
masterfrom
fetch-remote-urls

Conversation

@technoweenie

Copy link
Copy Markdown
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.

Comment thread config/endpoint.go
return e
}

if strings.HasSuffix(url, "/") {

Copy link
Copy Markdown
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
Copy Markdown
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).

Comment thread test/test-fetch.sh Outdated

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

Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants