mirror of
https://github.com/outbackdingo/ghorg.git
synced 2026-01-27 10:19:03 +00:00
Revert "feat: allow usage of --prune with --preserve-dir" (#525)
This commit is contained in:
@@ -87,21 +87,6 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# PRUNE AND PRESERVE DIR
|
||||
ghorg clone $GITLAB_GROUP --token="${GITLAB_TOKEN}" --scm=gitlab --prune --preserve-dir
|
||||
git init "${HOME}"/ghorg/"${GITLAB_GROUP}"/wayne-enterprises/wayne-industries/prunable
|
||||
ghorg clone $GITLAB_GROUP --token="${GITLAB_TOKEN}" --scm=gitlab --prune --preserve-dir
|
||||
|
||||
if [ -e "${HOME}"/ghorg/"${GITLAB_GROUP}"/wayne-enterprises/wayne-industries/microservice ] && \
|
||||
[ ! -e "${HOME}"/ghorg/"${GITLAB_GROUP}"/wayne-enterprises/wayne-industries/prunable ]
|
||||
then
|
||||
echo "Pass: gitlab org clone preserve dir, prune"
|
||||
rm -rf "${HOME}/ghorg/${GITLAB_GROUP}"
|
||||
else
|
||||
echo "Fail: gitlab org clone preserve dir, prune"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# REPO NAME COLLISION
|
||||
ghorg clone $GITLAB_GROUP_2 --token="${GITLAB_TOKEN}" --scm=gitlab
|
||||
|
||||
|
||||
Reference in New Issue
Block a user