projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02a6c94
)
mesa: don't call git if it's not git repository
author
Marcin Slusarz
<marcin.slusarz@gmail.com>
Thu, 5 May 2011 20:37:22 +0000
(22:37 +0200)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Thu, 5 May 2011 20:49:21 +0000
(13:49 -0700)
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
bin/extract_git_sha1
patch
|
blob
|
history
diff --git
a/bin/extract_git_sha1
b/bin/extract_git_sha1
index
5e635d4
..
8283870
100755
(executable)
--- 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