From d20e562644f33a3ee025c6d9ac1b395e77b86430 Mon Sep 17 00:00:00 2001 From: Jesse Scott Date: Wed, 10 Apr 2019 12:28:09 -0700 Subject: [PATCH] (MAINT) --template-ref commit targetting again Hopefully this will successfully branch at the right commit for both pull requests and pushes to master. --- .travis/test_script.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis/test_script.sh b/.travis/test_script.sh index ffed2a6e..5a376fd0 100755 --- a/.travis/test_script.sh +++ b/.travis/test_script.sh @@ -4,8 +4,9 @@ set -e # exit immediately on error TEMPLATE_PR_DIR=$PWD -# Make a new branch from the result of merging the PR commit into master -git branch travis_commit FETCH_HEAD +# Make a branch from checked out HEAD so that we can target +# it specifically with --template-ref +git checkout -b travis_commit # Test if new module from PR commit is still functional. pdk new module new_module --template-url="file://$TEMPLATE_PR_DIR" --template-ref=travis_commit --skip-interview