mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 12:42:50 +00:00
fix the repeated git_repack
This commit is contained in:
parent
4c49853e4a
commit
3c91281388
12
cros.sh
12
cros.sh
@ -49,13 +49,13 @@ function git_repack() {
|
|||||||
git_clone_or_pull $MANIFEST_URL $MANIFEST_DIR
|
git_clone_or_pull $MANIFEST_URL $MANIFEST_DIR
|
||||||
|
|
||||||
for repo in $($MANIFEST_XML_REPOLIST $MANIFEST_DIR/default.xml cros chromium); do
|
for repo in $($MANIFEST_XML_REPOLIST $MANIFEST_DIR/default.xml cros chromium); do
|
||||||
if [[ -z ${DRY_RUN:-} ]]; then
|
|
||||||
contains $repo ${IGNORED_REPO[@]} && continue
|
contains $repo ${IGNORED_REPO[@]} && continue
|
||||||
git_clone_or_pull $TUNASYNC_UPSTREAM_URL/$repo $TUNASYNC_WORKING_DIR/$repo yes
|
|
||||||
if [[ "$USE_BITMAP_INDEX" == "1" ]]; then
|
|
||||||
git_repack
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo $TUNASYNC_UPSTREAM_URL/$repo
|
echo $TUNASYNC_UPSTREAM_URL/$repo
|
||||||
|
if [[ -z ${DRY_RUN:-} ]]; then
|
||||||
|
git_clone_or_pull $TUNASYNC_UPSTREAM_URL/$repo $TUNASYNC_WORKING_DIR/$repo yes
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [[ -z ${DRY_RUN:-} && "$USE_BITMAP_INDEX" == "1" ]]; then
|
||||||
|
git_repack
|
||||||
|
fi
|
||||||
|
11
weave.sh
11
weave.sh
@ -54,13 +54,12 @@ git_clone_or_pull $MANIFEST_URL $MANIFEST_DIR
|
|||||||
|
|
||||||
for repo in $($MANIFEST_XML_REPOLIST $MANIFEST_DIR/default.xml weave); do
|
for repo in $($MANIFEST_XML_REPOLIST $MANIFEST_DIR/default.xml weave); do
|
||||||
contains $repo ${IGNORED_REPO[@]} && continue
|
contains $repo ${IGNORED_REPO[@]} && continue
|
||||||
|
echo $TUNASYNC_UPSTREAM_URL/$repo
|
||||||
if [[ -z ${DRY_RUN:-} ]]; then
|
if [[ -z ${DRY_RUN:-} ]]; then
|
||||||
echo $TUNASYNC_UPSTREAM_URL/$repo
|
|
||||||
git_clone_or_pull $TUNASYNC_UPSTREAM_URL/$repo $TUNASYNC_WORKING_DIR/$repo yes
|
git_clone_or_pull $TUNASYNC_UPSTREAM_URL/$repo $TUNASYNC_WORKING_DIR/$repo yes
|
||||||
if [[ "$USE_BITMAP_INDEX" == "1" ]]; then
|
|
||||||
git_repack
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo $TUNASYNC_UPSTREAM_URL/$repo
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [[ -z ${DRY_RUN:-} && "$USE_BITMAP_INDEX" == "1" ]]; then
|
||||||
|
git_repack
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user