 Git commands in a foreign repository or in a
different working tree of the same repository, then it should clear these
environment variables so they do not interfere with Git operations at the
foreign location.  For example:</p>
</div>
<div class="listingblock">
<div class="content">
<pre>local_desc=$(git describe)
foreign_desc=$(unset $(git rev-parse --local-env-vars); git -C ../foreign-repo describe)</pre>
</div>
</div>
<div class="paragraph">
<p>Hooks can get their arguments via the environment, command