Skip to content

Commit

Permalink
fix git template directory (#106)
Browse files Browse the repository at this point in the history
* failing test

* pass proper template directory in the env
  • Loading branch information
jhheider authored Jan 17, 2023
1 parent ab5c410 commit c0af519
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion projects/git-scm.org/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c0af519

Please sign in to comment.