yaml / yaml-test-suite

Comprehensive, language independent Test Suite for YAML
MIT License
172 stars 58 forks source link

Finding out remote url needs to be fixed #7

Closed perlpunk closed 5 years ago

perlpunk commented 7 years ago
gh-pages:
    git clone $$(git config remote.origin.url) -b $@ $@

This doesn't work for me. Same with target data. I don't have a remote called origin. I rename the author remote to author whenever I do a fork

@sigmavirus24 suggested this: git config --get branch.<branch-name>.remote to get the remote name. So something like this:

remote=$(git config --get branch.master.remote)
url=$(git config remote.$remote.url)
git clone $url -b $@ $@
sigmavirus24 commented 7 years ago

For what it's worth, I got the idea for looking at

git config --list | grep branch
perlpunk commented 5 years ago

Fixed via commit 38fd62f (using git worktree instead of clone)