Sha256: be9ba900307a777437ec112a3910db54936380a22b8d203121dd35db30106868

Contents?: true

Size: 590 Bytes

Versions: 268

Compression:

Stored size: 590 Bytes

Contents

#!/usr/bin/env bash

set -e

source test/setup

use Test::More

clone-foo-and-bar

subrepo-clone-bar-into-foo

(
  cd $OWNER/bar
  add-new-files Bar2
  git tag -a CoolTag -m "Should stay in subrepo"
  git push
) &> /dev/null || die


# Fetch information
{
  is "$(
    cd $OWNER/foo
    git subrepo fetch bar
  )" \
    "Fetched 'bar' from '../../../tmp/upstream/bar' (master)." \
    'subrepo fetch command output is correct'
}

# Check that there is no tags fetched
{
  is "$(
    cd $OWNER/foo
    git tag -l 'CoolTag'
  )" \
    "" \
    'No tag is available'
}

done_testing

teardown

Version data entries

268 entries across 268 versions & 4 rubygems

Version Path
eac_launcher-0.6.2 vendor/git-subrepo/test/fetch.t
eac_launcher-0.6.1 vendor/git-subrepo/test/fetch.t
eac_launcher-0.6.0 vendor/git-subrepo/test/fetch.t
eac_launcher-0.5.1 vendor/git-subrepo/test/fetch.t
eac_launcher-0.5.0 vendor/git-subrepo/test/fetch.t
eac_launcher-0.4.0 vendor/git-subrepo/test/fetch.t
eac_launcher-0.3.2 vendor/git-subrepo/test/fetch.t
eac_launcher-0.3.1 vendor/git-subrepo/test/fetch.t