summaryrefslogtreecommitdiffstats
path: root/php-webmozart-assert2-get-source.sh
diff options
context:
space:
mode:
Diffstat (limited to 'php-webmozart-assert2-get-source.sh')
-rwxr-xr-xphp-webmozart-assert2-get-source.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/php-webmozart-assert2-get-source.sh b/php-webmozart-assert2-get-source.sh
index b2ac62b..81a3c06 100755
--- a/php-webmozart-assert2-get-source.sh
+++ b/php-webmozart-assert2-get-source.sh
@@ -54,7 +54,8 @@ pushd $TEMP_DIR
pushd $GIT_DIR
print "Checking out commit..."
- $GIT checkout $GIT_COMMIT
+ $GIT checkout $GIT_COMMIT || exit 1
+ cp composer.json ${SPEC_DIR}
popd
TAR_DIR=${GIT_NAME}-${GIT_COMMIT}