diff --git a/recipes/README.recipes.md b/recipes/README.recipes.md index adcf9e859..5b8a9f665 100644 --- a/recipes/README.recipes.md +++ b/recipes/README.recipes.md @@ -1097,10 +1097,10 @@ Raises: — **def [RunSteps](/recipes/recipe_modules/git/examples/full.py#20)(api):** ### *recipes* / [git:tests/number](/recipes/recipe_modules/git/tests/number.py) -[DEPS](/recipes/recipe_modules/git/tests/number.py#9): [git](#recipe_modules-git), [recipe\_engine/assertions][recipe_engine/recipe_modules/assertions], [recipe\_engine/properties][recipe_engine/recipe_modules/properties] +[DEPS](/recipes/recipe_modules/git/tests/number.py#9): [git](#recipe_modules-git), [recipe\_engine/assertions][recipe_engine/recipe_modules/assertions], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties] -— **def [RunSteps](/recipes/recipe_modules/git/tests/number.py#16)(api):** +— **def [RunSteps](/recipes/recipe_modules/git/tests/number.py#17)(api):** ### *recipes* / [git\_cl:examples/full](/recipes/recipe_modules/git_cl/examples/full.py) [DEPS](/recipes/recipe_modules/git_cl/examples/full.py#6): [git\_cl](#recipe_modules-git_cl), [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/step][recipe_engine/recipe_modules/step] diff --git a/recipes/recipe_modules/git/tests/number.py b/recipes/recipe_modules/git/tests/number.py index 0e7c223df..ad23f1237 100644 --- a/recipes/recipe_modules/git/tests/number.py +++ b/recipes/recipe_modules/git/tests/number.py @@ -9,11 +9,15 @@ PYTHON_VERSION_COMPATIBILITY = 'PY3' DEPS = [ 'git', 'recipe_engine/assertions', + 'recipe_engine/path', 'recipe_engine/properties', ] def RunSteps(api): + # Set the checkout_dir because the `git` module implicitly uses this. + api.path.checkout_dir = api.path['cache'].join('builder') + numbers = api.git.number( commitrefs=api.properties.get('commitrefs'), test_values=api.properties.get('test_values'),