Clone instead of init
This commit is contained in:
parent
4ee6612388
commit
d572c90470
4
sync.sh
4
sync.sh
@ -46,9 +46,9 @@ for REPO in ${REPOS}; do
|
|||||||
printf "\n🔄 Syncing ${REPO}\n\n"
|
printf "\n🔄 Syncing ${REPO}\n\n"
|
||||||
|
|
||||||
rm -rf ${REPO}
|
rm -rf ${REPO}
|
||||||
mkdir -p ${REPO}
|
|
||||||
|
git clone "${GITEA_BASE}${REPO}" ${REPO}
|
||||||
cd ${REPO}
|
cd ${REPO}
|
||||||
git init 1> /dev/null
|
|
||||||
|
|
||||||
BRANCH=$(getDefaultBranch ${REPO})
|
BRANCH=$(getDefaultBranch ${REPO})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user