Sha256: 55529c10c84cabf0a8556e204a5c3484a8f0d29058ec5ce9e16a8f667b1fb99e
Contents?: true
Size: 878 Bytes
Versions: 42
Compression:
Stored size: 878 Bytes
Contents
#!/bin/bash set -e # setup test fixtures BASE_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" cd $BASE_PATH/test/fixtures/git_submodule FIXTURES="$(pwd)/nested $(pwd)/submodule $(pwd)/project" SUBMODULE="" echo "setting up git_submodule test fixtures" for fixture in $FIXTURES; do if [ "$1" == "-f" ]; then rm -rf $fixture fi mkdir -p $fixture pushd $fixture >/dev/null # fixture is already set up, use "-f" to force a refresh if [ -e ".git" ]; then continue fi git init -q . cp $BASE_PATH/LICENSE . git add LICENSE git commit -q -m "init" if [ -n "$SUBMODULE" ] ; then git submodule add -q "$SUBMODULE" "vendor/$(basename $SUBMODULE)" git submodule update --recursive --init -q git add . && git commit -q -m "update submodule" fi echo "$(basename $fixture) created" SUBMODULE="$(pwd)" popd >/dev/null done
Version data entries
42 entries across 42 versions & 1 rubygems