Skip to content

Make it possible to enable Travis on forks#393

Merged
technoweenie merged 1 commit intogit-lfs:masterfrom
sinbad:travis-on-forks
Jun 17, 2015
Merged

Make it possible to enable Travis on forks#393
technoweenie merged 1 commit intogit-lfs:masterfrom
sinbad:travis-on-forks

Conversation

@sinbad
Copy link
Contributor

@sinbad sinbad commented Jun 15, 2015

I needed this to debug Travis issues, might be useful for someone else. Usually trying to use Travis with a fork of a golang project fails because the clone path is $fork_user/git-lfs instead of github/git-lfs which breaks package references. Note that this code should work on any golang repo owned by github, in case that's useful.

Doesn't usually build with a fork because the clone path is $fork_user/git-lfs instead of github/git-lfs which breaks package references. This fixes that.
Note that this code should work on any golang repo owned by github
@michael-k
Copy link
Contributor

👍
I had the same issue and made a temporary commit on top which changed the imports:

grep -RI "github.com/github/git-lfs" * | cut -d ":" -f 1 | sort | uniq | xargs sed -i -e 's/github.com\/github\/git-lfs/github.com\/michael-k\/git-lfs/g'

@michael-k michael-k mentioned this pull request Jun 15, 2015
technoweenie added a commit that referenced this pull request Jun 17, 2015
Make it possible to enable Travis on forks
@technoweenie technoweenie merged commit 3ba9307 into git-lfs:master Jun 17, 2015
@technoweenie
Copy link
Contributor

Thanks!

@sinbad sinbad deleted the travis-on-forks branch June 18, 2015 09:33
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