Sha256: 69ffc9e8807487b8754161b863be323ee31ac1747be8c7cdba9b9971a6c8b7af

Contents?: true

Size: 620 Bytes

Versions: 268

Compression:

Stored size: 620 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/foo
  add-new-files bar/file
  git subrepo --quiet branch bar
)

test-exists \
  "$OWNER/foo/.git/refs/heads/subrepo/bar" \
  "$OWNER/foo/.git/refs/subrepo/bar/fetch"

is "$(
  cd $OWNER/foo
  git subrepo clean bar
)" \
  "Removed branch 'subrepo/bar'." \
  "subrepo clean command output is correct"

test-exists \
  "!$OWNER/foo/.git/refs/heads/subrepo/bar"

(
  cd $OWNER/foo
  git subrepo clean --force bar
)

test-exists \
  "!$OWNER/foo/.git/refs/subrepo/bar/fetch"

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/clean.t
eac_tools-0.86.4 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_tools-0.86.3 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_git-0.16.0 vendor/git-subrepo/test/clean.t
eac_tools-0.86.2 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_git-0.15.0 vendor/git-subrepo/test/clean.t
eac_tools-0.84.2 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_tools-0.84.1 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_tools-0.84.0 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_tools-0.83.0 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_tools-0.82.0 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_tools-0.81.0 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_tools-0.80.0 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_tools-0.79.0 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_tools-0.78.0 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_tools-0.77.1 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_tools-0.77.0 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_tools-0.76.1 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_tools-0.76.0 sub/eac_git/vendor/git-subrepo/test/clean.t
eac_tools-0.75.2 sub/eac_git/vendor/git-subrepo/test/clean.t