blob: e2f73789548601995464da5b03cbf9a088c03b7f (
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"
initializeRepositories
"${BIN_MAIN}" ${BIN_MAIN_OPTIONS} --workdir "${DIR_TEMP}" --branch-whitelist 'master' --tags-plan all -- "${DIR_SOURCE}" '--subdirectory-filter subdir' "${DIR_DESTINATION}"
echo 'Fetching tags'
actualTags="$(getTagList "${DIR_DESTINATION}")"
expectedTags='tag-02 tag-03'
if test "${actualTags}" != "${expectedTags}"
then
printf 'Expected tags: %s\nResulting tags: %s\n' "${expectedTags}" "${actualTags}">&2
exit 1
fi
|