[Mesa-dev] [PATCH 2/2] mesa: don't call git if it's not git repository
Dan Nicholson
dbn.lists at gmail.com
Mon May 2 18:32:16 PDT 2011
On May 2, 2011 11:09 AM, "Marcin Slusarz" <marcin.slusarz at gmail.com> 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
> --
> 1.7.4.1
Yeah this is needed for tarballs.
Reviewed-by: Dan Nicholson <dbn.lists at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110502/cfd68c84/attachment.htm>
More information about the mesa-dev
mailing list