Skip to content

Commit cfd44b6

Browse files
committed
2021-06-25 11:56:56
1 parent ad3c199 commit cfd44b6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mirror.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ mirror() {
1313
SOURCE="https://${SOURCE_USER}:${SOURCE_TOKEN}@${SOURCE_REPO#https://}"
1414
TARGET="https://${TARGET_USER}:${TARGET_TOKEN}@${TARGET_REPO#https://}"
1515

16-
${git} clone --mirror "${SOURCE}" '/root/git/source' && cd '/root/git/source' || exit 1
16+
${git} clone --mirror "${SOURCE}" '/root/git/source' \
17+
&& cd '/root/git/source' || exit 1
1718
${git} remote add 'target' "${TARGET}"
1819
${git} push -f --mirror 'target'
1920
}

0 commit comments

Comments
 (0)