<p>On May 2, 2011 11:09 AM, "Marcin Slusarz" <<a href="mailto:marcin.slusarz@gmail.com">marcin.slusarz@gmail.com</a>> wrote:<br>
><br>
><br>
> ---<br>
> bin/extract_git_sha1 | 4 ++++<br>
> 1 files changed, 4 insertions(+), 0 deletions(-)<br>
><br>
> diff --git a/bin/extract_git_sha1 b/bin/extract_git_sha1<br>
> index 5e635d4..8283870 100755<br>
> --- a/bin/extract_git_sha1<br>
> +++ b/bin/extract_git_sha1<br>
> @@ -3,6 +3,10 @@ if [ ! -f src/mesa/main/git_sha1.h ]; then<br>
> touch src/mesa/main/git_sha1.h<br>
> fi<br>
><br>
> +if [ ! -d .git ]; then<br>
> + exit<br>
> +fi<br>
> +<br>
> if which git > /dev/null; then<br>
> # Extract the 7-digit "short" SHA1 for the current HEAD, convert<br>
> # it to a string, and wrap it in a #define. This is used in<br>
> --<br>
> 1.7.4.1</p>
<p>Yeah this is needed for tarballs.</p>
<p>Reviewed-by: Dan Nicholson <<a href="mailto:dbn.lists@gmail.com">dbn.lists@gmail.com</a>></p>