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

Version Path
licensed-3.2.3 script/source-setup/git_submodule
licensed-3.2.2 script/source-setup/git_submodule
licensed-3.2.1 script/source-setup/git_submodule
licensed-3.2.0 script/source-setup/git_submodule
licensed-3.1.0 script/source-setup/git_submodule
licensed-3.0.1 script/source-setup/git_submodule
licensed-3.0.0 script/source-setup/git_submodule
licensed-2.15.2 script/source-setup/git_submodule
licensed-2.15.1 script/source-setup/git_submodule
licensed-2.15.0 script/source-setup/git_submodule
licensed-2.14.4 script/source-setup/git_submodule
licensed-2.14.3 script/source-setup/git_submodule
licensed-2.14.2 script/source-setup/git_submodule
licensed-2.14.1 script/source-setup/git_submodule
licensed-2.14.0 script/source-setup/git_submodule
licensed-2.13.0 script/source-setup/git_submodule
licensed-2.12.2 script/source-setup/git_submodule
licensed-2.12.1 script/source-setup/git_submodule
licensed-2.12.0 script/source-setup/git_submodule
licensed-2.11.1 script/source-setup/git_submodule