mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 12:24:12 +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 ===="
|
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
|
if [[ ! -f "$TUNASYNC_WORKING_DIR/HEAD" ]]; then
|
||||||
echo "Initializing repo.git mirror"
|
echo "Initializing repo.git mirror"
|
||||||
repo_init
|
repo_init
|
||||||
fi
|
fi
|
||||||
|
|
||||||
update_repo_git
|
update_repo_git
|
||||||
|
checkout_repo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user