summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
authorRaman Tenneti <rtenneti@google.com>2021-04-02 10:55:33 -0700
committerRaman Tenneti <rtenneti@google.com>2021-04-05 05:53:19 +0000
commit6a2f4fb39073a4e2e6824d5f2f4a1cbf5fe4b766 (patch)
tree039174f3558762b8152d3621ea0f6dcf0c70ee65 /repo
parentbeea5de84297518634de48b20961efa68a57d797 (diff)
downloadgit-repo-6a2f4fb39073a4e2e6824d5f2f4a1cbf5fe4b766.tar.gz
repo init: Added --no-partial-clone and made it persist. Bumped version to 2.14.
Saved the repo.partialclone when --no-partial-clone option is passed to init, so repo sync will honor the no-partial-clone option. $ ./run_tests -v Bug: [google internal] b/175712967 $ mkdir androidx-main && cd androidx-main $ repo init -u https://android.googlesource.com/platform/manifest -b androidx-main --partial-clone --clone-filter=blob:limit=10M $ repo sync -c -j32 $ cd frameworks/support/ && /google/bin/releases/android/git_repack/git_unpartial $ git config -l | grep 'partialclonefilter=blob' Observe partialclone is not enabled. $ cd ../.. $ repo init -u https://android.googlesource.com/platform/manifest -b androidx-main $ repo sync -c -j32 $ cd frameworks/support/ && git config -l | grep 'partialclonefilter=blob' Observe partialclone is enabled. $ /google/bin/releases/android/git_repack/git_unpartial Observe partialclone is not enabled. $ cd ../.. $ repo_dev init -u https://android.googlesource.com/platform/manifest -b androidx-main --no-partial-clone $ repo sync -c -j32 $ cd frameworks/support/ && git config -l | grep 'partialclonefilter=blob' Observe partialclone is not enabled. Change-Id: I4400ad7803b106319856bcd0fffe00bafcdf014e Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/302122 Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Raman Tenneti <rtenneti@google.com>
Diffstat (limited to 'repo')
-rwxr-xr-xrepo5
1 files changed, 4 insertions, 1 deletions
diff --git a/repo b/repo
index 768050ea..80db98d2 100755
--- a/repo
+++ b/repo
@@ -147,7 +147,7 @@ if not REPO_REV:
147 REPO_REV = 'stable' 147 REPO_REV = 'stable'
148 148
149# increment this whenever we make important changes to this script 149# increment this whenever we make important changes to this script
150VERSION = (2, 12) 150VERSION = (2, 14)
151 151
152# increment this if the MAINTAINER_KEYS block is modified 152# increment this if the MAINTAINER_KEYS block is modified
153KEYRING_VERSION = (2, 3) 153KEYRING_VERSION = (2, 3)
@@ -314,6 +314,9 @@ def GetParser(gitc_init=False):
314 group.add_option('--partial-clone', action='store_true', 314 group.add_option('--partial-clone', action='store_true',
315 help='perform partial clone (https://git-scm.com/' 315 help='perform partial clone (https://git-scm.com/'
316 'docs/gitrepository-layout#_code_partialclone_code)') 316 'docs/gitrepository-layout#_code_partialclone_code)')
317 group.add_option('--no-partial-clone', action='store_false',
318 help='disable use of partial clone (https://git-scm.com/'
319 'docs/gitrepository-layout#_code_partialclone_code)')
317 group.add_option('--clone-filter', action='store', default='blob:none', 320 group.add_option('--clone-filter', action='store', default='blob:none',
318 help='filter for use with --partial-clone ' 321 help='filter for use with --partial-clone '
319 '[default: %default]') 322 '[default: %default]')