fix the repeated git_repack

This commit is contained in:
Hui Yiqun 2016-12-27 09:47:10 +08:00
parent 4c49853e4a
commit 3c91281388
2 changed files with 11 additions and 12 deletions

12
cros.sh
View File

@ -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
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
if [[ -z ${DRY_RUN:-} ]]; then
git_clone_or_pull $TUNASYNC_UPSTREAM_URL/$repo $TUNASYNC_WORKING_DIR/$repo yes
fi
done
if [[ -z ${DRY_RUN:-} && "$USE_BITMAP_INDEX" == "1" ]]; then
git_repack
fi

View File

@ -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