3 if test -d $top_srcdir/.git
; then
6 if test -z "$ghprbPullId"; then
7 branch
=`git branch | grep '^\*' | sed 's/(detached from .*/explicit/' | cut -d ' ' -f 2`;
9 branch
="pull-request-$ghprbPullId";
11 version
=`git log --no-color --first-parent -n1 --pretty=format:%h`;
12 echo "#define FULL_VERSION \"$branch/$version\"";
15 echo "#define FULL_VERSION \"tarball\"";