aboutsummaryrefslogtreecommitdiffstats
path: root/test/tests/filter-directory-filtered-tags-wl.success
blob: 3e08be0405075074bb324704dce58d0ec30b9f8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

. "$(cd -- "$(dirname -- "${0}")" && pwd -P)/../bootstrap.sh"

initializeRepositories

"${BIN_MAIN}" --workdir "${DIR_TEMP}" --branch-whitelist 'master' --tag-whitelist 'tag-02' -- "${DIR_SOURCE}" '--prune-empty --subdirectory-filter subdir' "${DIR_DESTINATION}"

echo 'Fetching tags'
actualTags="$(getTagList "${DIR_DESTINATION}")"
expectedTags='tag-02'
if test "${actualTags}" != "${expectedTags}"
then
	printf 'Expected tags: %s\nResulting tags with whitelist: %s\n' "${expectedTags}" "${actualTags}">&2
	exit 1
fi

© 2014-2024 Faster IT GmbH | imprint | privacy policy