We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad3c199 commit cfd44b6Copy full SHA for cfd44b6
1 file changed
mirror.sh
@@ -13,7 +13,8 @@ mirror() {
13
SOURCE="https://${SOURCE_USER}:${SOURCE_TOKEN}@${SOURCE_REPO#https://}"
14
TARGET="https://${TARGET_USER}:${TARGET_TOKEN}@${TARGET_REPO#https://}"
15
16
- ${git} clone --mirror "${SOURCE}" '/root/git/source' && cd '/root/git/source' || exit 1
+ ${git} clone --mirror "${SOURCE}" '/root/git/source' \
17
+ && cd '/root/git/source' || exit 1
18
${git} remote add 'target' "${TARGET}"
19
${git} push -f --mirror 'target'
20
}
0 commit comments