[Mesa-dev] [PATCH 2/2] mesa: don't call git if it's not git repository
Ian Romanick
idr at freedesktop.org
Mon May 2 22:51:36 PDT 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/02/2011 11:07 AM, Marcin Slusarz wrote:
>
> ---
> bin/extract_git_sha1 | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/bin/extract_git_sha1 b/bin/extract_git_sha1
> index 5e635d4..8283870 100755
> --- a/bin/extract_git_sha1
> +++ b/bin/extract_git_sha1
> @@ -3,6 +3,10 @@ if [ ! -f src/mesa/main/git_sha1.h ]; then
> touch src/mesa/main/git_sha1.h
> fi
>
> +if [ ! -d .git ]; then
> + exit
> +fi
> +
> if which git > /dev/null; then
> # Extract the 7-digit "short" SHA1 for the current HEAD, convert
> # it to a string, and wrap it in a #define. This is used in
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk2/l+gACgkQX1gOwKyEAw9W7wCghUH3gNQzjH6GfUbyLfH0ThLx
RfgAoJyqmmns43UMQcridR9YeCAu4SuE
=R7AW
-----END PGP SIGNATURE-----
More information about the mesa-dev
mailing list