fix git template directory (#106)

* failing test

* pass proper template directory in the env
This commit is contained in:
Jacob Heider 2023-01-17 15:06:19 -05:00 committed by GitHub
parent ab5c410cfa
commit c0af519e55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,10 @@ dependencies:
curl.se: '>=5'
perl.org: '*'
runtime:
env:
GIT_TEMPLATE_DIR: '{{prefix}}/share/git-core/templates'
build:
dependencies:
tea.xyz/gx/cc: c99
@ -38,7 +42,12 @@ build:
INSTALL_STRIP: -s
test: |
git clone https://github.com/teaxyz/white-paper
git clone https://github.com/teaxyz/white-paper 2>&1 | tee clone-output.txt
# check that the templates can be found
if grep -q 'warning: templates not found in' clone-output.txt; then
false
fi
mkdir foo
cd foo