mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +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
|
||||
|
||||
for repo in $($MANIFEST_XML_REPOLIST $MANIFEST_DIR/default.xml cros chromium); do
|
||||
contains $repo ${IGNORED_REPO[@]} && continue
|
||||
echo $TUNASYNC_UPSTREAM_URL/$repo
|
||||
if [[ -z ${DRY_RUN:-} ]]; then
|
||||
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
|
||||
fi
|
||||
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
|
||||
contains $repo ${IGNORED_REPO[@]} && continue
|
||||
echo $TUNASYNC_UPSTREAM_URL/$repo
|
||||
if [[ -z ${DRY_RUN:-} ]]; then
|
||||
echo $TUNASYNC_UPSTREAM_URL/$repo
|
||||
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
|
||||
done
|
||||
|
||||
if [[ -z ${DRY_RUN:-} && "$USE_BITMAP_INDEX" == "1" ]]; then
|
||||
git_repack
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user