Sha256: 873cd425ef6b751c07a5a54ee69fe544a61f546ea34fdf3b45f6ef08bb375970

Contents?: true

Size: 1.11 KB

Versions: 268

Compression:

Stored size: 1.11 KB

Contents

#!/usr/bin/env bash

set -e

source test/setup

use Test::More

git clone $UPSTREAM/init $OWNER/init &>/dev/null

gitrepo=$OWNER/init/doc/.gitrepo

(
  cd "$OWNER/init"
  git subrepo init doc
) > /dev/null

# Test init/doc/.gitrepo file contents:
{
  test-gitrepo-field "remote" "none"
  test-gitrepo-field "branch" "master"
  test-gitrepo-field "commit" ""
  test-gitrepo-field "parent" ""
  test-gitrepo-field "method" "merge"
  test-gitrepo-field "cmdver" "`git subrepo --version`"
}

is "$(
  cd $OWNER/init
  git subrepo config doc method rebase
)" \
  "Subrepo 'doc' option 'method' set to 'rebase'."

{
  test-gitrepo-field "remote" "none"
  test-gitrepo-field "branch" "master"
  test-gitrepo-field "commit" ""
  test-gitrepo-field "parent" ""
  test-gitrepo-field "method" "rebase"
  test-gitrepo-field "cmdver" "`git subrepo --version`"
}

is "$(
  cd $OWNER/init
  git subrepo config doc method
)" \
  "Subrepo 'doc' option 'method' has value 'rebase'."

is "$(
  cd $OWNER/init
  catch git subrepo config doc branch new
)" \
  "git-subrepo: This option is autogenerated, use '--force' to override."


done_testing

teardown

Version data entries

268 entries across 268 versions & 4 rubygems

Version Path
eac_tools-0.86.5 sub/eac_git/vendor/git-subrepo/test/config.t
eac_tools-0.86.4 sub/eac_git/vendor/git-subrepo/test/config.t
eac_tools-0.86.3 sub/eac_git/vendor/git-subrepo/test/config.t
eac_git-0.16.0 vendor/git-subrepo/test/config.t
eac_tools-0.86.2 sub/eac_git/vendor/git-subrepo/test/config.t
eac_git-0.15.0 vendor/git-subrepo/test/config.t
eac_tools-0.84.2 sub/eac_git/vendor/git-subrepo/test/config.t
eac_tools-0.84.1 sub/eac_git/vendor/git-subrepo/test/config.t
eac_tools-0.84.0 sub/eac_git/vendor/git-subrepo/test/config.t
eac_tools-0.83.0 sub/eac_git/vendor/git-subrepo/test/config.t
eac_tools-0.82.0 sub/eac_git/vendor/git-subrepo/test/config.t
eac_tools-0.81.0 sub/eac_git/vendor/git-subrepo/test/config.t
eac_tools-0.80.0 sub/eac_git/vendor/git-subrepo/test/config.t
eac_tools-0.79.0 sub/eac_git/vendor/git-subrepo/test/config.t
eac_tools-0.78.0 sub/eac_git/vendor/git-subrepo/test/config.t
eac_tools-0.77.1 sub/eac_git/vendor/git-subrepo/test/config.t
eac_tools-0.77.0 sub/eac_git/vendor/git-subrepo/test/config.t
eac_tools-0.76.1 sub/eac_git/vendor/git-subrepo/test/config.t
eac_tools-0.76.0 sub/eac_git/vendor/git-subrepo/test/config.t
eac_tools-0.75.2 sub/eac_git/vendor/git-subrepo/test/config.t