We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 843168b commit 3e470b3Copy full SHA for 3e470b3
common/src/scripts/saveVersion.sh
@@ -36,7 +36,10 @@ if [ "$revision" = "" ]; then
36
revision=`git log -1 --pretty=format:"%H"`
37
hostname=`hostname`
38
branch=`git branch | sed -n -e 's/^* //p'`
39
- url="git://${hostname}${cwd}"
+ url=$(git remote -v | grep -E 'apache.org|github.com[/:]apache/hive' | head -n 1 | awk '{print $2}')
40
+ if [ -z "$url" ]; then
41
+ url="Unknown"
42
+ fi
43
elif [ -d .svn ]; then
44
revision=`svn info ../ | sed -n -e 's/Last Changed Rev: \(.*\)/\1/p'`
45
url=`svn info ../ | sed -n -e 's/^URL: \(.*\)/\1/p'`
0 commit comments