diff options
author | Michele Locati <michele@locati.it> | 2018-03-15 16:24:16 +0100 |
---|---|---|
committer | Michele Locati <michele@locati.it> | 2018-03-15 16:24:16 +0100 |
commit | a1d0fa50ffd0576967ee7872dc38b0e49ea544e8 (patch) | |
tree | f933d1ca6788f85cde4303b6687d9ac7610e122c /test/tests/filter-directory-filtered-tags-blrx.success | |
parent | a68e551b44ce822c96e59b9035f18ff0adbfecc7 (diff) | |
download | incremental-git-filter-branch-a1d0fa50ffd0576967ee7872dc38b0e49ea544e8.tar.gz incremental-git-filter-branch-a1d0fa50ffd0576967ee7872dc38b0e49ea544e8.tar.bz2 incremental-git-filter-branch-a1d0fa50ffd0576967ee7872dc38b0e49ea544e8.zip |
Allow filtering tags
Diffstat (limited to 'test/tests/filter-directory-filtered-tags-blrx.success')
-rwxr-xr-x | test/tests/filter-directory-filtered-tags-blrx.success | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/tests/filter-directory-filtered-tags-blrx.success b/test/tests/filter-directory-filtered-tags-blrx.success new file mode 100755 index 0000000..ff6e155 --- /dev/null +++ b/test/tests/filter-directory-filtered-tags-blrx.success @@ -0,0 +1,16 @@ +#!/bin/sh + +. "$(cd -- "$(dirname -- "${0}")" && pwd -P)/../bootstrap.sh" + +initializeRepositories + +"${BIN_MAIN}" --workdir "${DIR_TEMP}" --branch-whitelist 'master' --tag-blacklist 'rx:tag-[0-9]+' -- "${DIR_SOURCE}" '--prune-empty --subdirectory-filter subdir' "${DIR_DESTINATION}" + +echo 'Fetching tags' +actualTags="$(getTagList "${DIR_DESTINATION}")" +expectedTags='' +if test "${actualTags}" != "${expectedTags}" +then + printf 'Expected tags: %s\nResulting tags with rx blacklist: %s\n' "${expectedTags}" "${actualTags}">&2 + exit 1 +fi |