Permalink
Browse files

skipping secondary git pull if building from a tag

  • Loading branch information...
1 parent e24bbcb commit 5263bcb82444aff9f6d74054b1914f03f6526c2e @jdeolive jdeolive committed Feb 23, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 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

0 comments on commit 5263bcb

Please sign in to comment.