mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
checkout repo file after syncing
This commit is contained in:
parent
79eef3d7d6
commit
c42b7c54d1
@ -13,9 +13,14 @@ function update_repo_git() {
|
||||
echo "==== SYNC repo.git DONE ===="
|
||||
}
|
||||
|
||||
function checkout_repo() {
|
||||
git -C $TUNASYNC_WORKING_DIR show HEAD:repo > $TUNASYNC_WORKING_DIR/repo
|
||||
}
|
||||
|
||||
if [[ ! -f "$TUNASYNC_WORKING_DIR/HEAD" ]]; then
|
||||
echo "Initializing repo.git mirror"
|
||||
repo_init
|
||||
fi
|
||||
|
||||
update_repo_git
|
||||
checkout_repo
|
||||
|
Loading…
x
Reference in New Issue
Block a user