Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

skipping secondary git pull if building from a tag

  • Loading branch information...
commit 5263bcb82444aff9f6d74054b1914f03f6526c2e 1 parent e24bbcb
@jdeolive jdeolive authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 build/main/suite/build.sh
View
7 build/main/suite/build.sh
@@ -42,7 +42,12 @@ export MAVEN_OPTS=-Xmx256m
cd repo
if [ ! -z $REV ]; then
git checkout $REV
- git pull origin $REV
+
+ # if this rev is a tag don't pull
+ if [ "$( git tag | grep $REV )" != $REV ]; then
+ git pull origin $REV
+ fi
+
git submodule update --init --recursive
fi
Please sign in to comment.
Something went wrong with that request. Please try again.