remove --prune from git push
This commit is contained in:
@@ -4,7 +4,10 @@ REPO_HOME="./sync"
|
|||||||
declare -A REPOS
|
declare -A REPOS
|
||||||
# syntax is [github_repo]="gitlab_repo"
|
# syntax is [github_repo]="gitlab_repo"
|
||||||
REPOS=([sheumann/AFPBridge]="salfter/AFPBridge"
|
REPOS=([sheumann/AFPBridge]="salfter/AFPBridge"
|
||||||
[sheumann/smbfst]="salfter/smbfst")
|
[sheumann/smbfst]="salfter/smbfst"
|
||||||
|
[bl0x/learn-fpga-amaranth]="salfter/learn-fpga-amaranth"
|
||||||
|
[BrunoLevy/learn-fpga]="salfter/learn-fpga"
|
||||||
|
[tinyfpga/TinyFPGA-BX]="salfter/TinyFPGA-BX")
|
||||||
cd $REPO_HOME
|
cd $REPO_HOME
|
||||||
for REPO_GITHUB in "${!REPOS[@]}"
|
for REPO_GITHUB in "${!REPOS[@]}"
|
||||||
do
|
do
|
||||||
@@ -13,5 +16,5 @@ do
|
|||||||
if [ ! -d $REPO_LOCAL ]; then
|
if [ ! -d $REPO_LOCAL ]; then
|
||||||
git clone --bare --mirror https://github.com/$REPO_GITHUB.git $REPO_LOCAL
|
git clone --bare --mirror https://github.com/$REPO_GITHUB.git $REPO_LOCAL
|
||||||
fi
|
fi
|
||||||
(cd $REPO_LOCAL; git fetch --prune; git push --prune ssh://git@gitlab.alfter.us:222/$REPO_LOCAL.git +refs/heads/*:refs/heads/* +refs/tags/*:refs/tags/*)
|
(cd $REPO_LOCAL; git fetch --prune; git push ssh://git@gitlab.alfter.us:222/$REPO_LOCAL.git +refs/heads/*:refs/heads/* +refs/tags/*:refs/tags/*)
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user