This is consistent with --git-post-export and unbreaks
tests/component/rpm/test_buildpackage_rpm.py:TestGbpRpm.test_hook_options
<para>
Exported environment variables are: <envar>GBP_GIT_DIR</envar> (the
repository the package is being built from),
- <envar>GBP_BUILD_DIR</envar> (the build dir).
+ <envar>GBP_TMP_DIR</envar> (the temporary directory where the sources
+ have been initially exported).
</para>
</listitem>
</varlistentry>
if options.preexport:
RunAtCommand(options.preexport, shell=True,
extra_env={'GBP_GIT_DIR': repo.git_dir,
- 'GBP_BUILD_DIR': export_dir}
+ 'GBP_TMP_DIR': export_dir}
)()
# Move packaging files to final export dir