7e3b65beb7
Enable use of REPO_CONFIG_DIR to customize .repoconfig location
...
For use cases with multiple instances of repo, eg some CI environments.
Bug: https://crbug.com/gerrit/15803
Change-Id: I65c1cfc8f6a98adfeb5efefc7ac6b45bf8e134de
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/356719
Tested-by: Gavin Mak <gavinmak@google.com >
Reviewed-by: Mike Frysinger <vapier@google.com >
2023-01-28 02:05:52 +00:00
c3d61ec252
init: Silence the "rm -r .repo and try again" message if quiet
...
Bug: b/258532367
Change-Id: I53a23aa0b237b0bb5f7e58464936f8c9b0db1311
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/355915
Reviewed-by: Mike Frysinger <vapier@google.com >
Tested-by: Gavin Mak <gavinmak@google.com >
2023-01-06 16:01:52 +00:00
78e82ec78e
Fix flake8 warnings for some files
...
Change-Id: If67f8660cfb0479f0e710b3566285ef401fcf077
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/355969
Tested-by: Sergiy Belozorov <sergiyb@chromium.org >
Reviewed-by: Mike Frysinger <vapier@google.com >
2023-01-05 18:43:12 +00:00
37ae75f27d
update_manpages.py: treat regex as raw string
...
Treat the values in the regex map as raw strings to fix
Invalid escape sequence 'g' (W605).
Change-Id: I53bf5d6bd1e1d6a1d1293e4f55640b6513bf3075
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354698
Tested-by: Daniel Kutik <daniel.kutik@lavawerk.com >
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-12-13 16:24:07 +00:00
7438aef1ca
Use 'backslashreplace' for decode
...
Resolve TODO as we are now requiring Python 3.
Change-Id: I7821627bd5c606276741c98efedaf5b11aecbcc3
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354702
Reviewed-by: Mike Frysinger <vapier@google.com >
Tested-by: Daniel Kutik <daniel.kutik@lavawerk.com >
2022-12-13 16:23:46 +00:00
e641281d14
Use print with flush=True instead of stdout.flush
...
Resolves multiple TODOs. Since we are requiring Python 3,
we move to using print function with flush=True instead of
using sys.stdout.flush().
Change-Id: I54db0344ec78ac81a8d6c6c7e43ee7d301f42f02
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354701
Tested-by: Daniel Kutik <daniel.kutik@lavawerk.com >
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-12-13 16:23:28 +00:00
035f22abec
pylint: remove unused imports
...
Removed unused imports accross multiple files.
Change-Id: Ib5ae4cebf9660e7339b11e3fa592d99f8d51e8d8
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354700
Tested-by: Daniel Kutik <daniel.kutik@lavawerk.com >
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-12-13 16:23:19 +00:00
e0728a5ecd
update-manpages: clean up symlink in checkout
...
We don't want symlinks in the git tree as it causes pain for Windows
users. We also don't really need it as we can refactor the code we
want to import slightly.
Change-Id: I4537c07c50ee9449e9f53e0f132a386e8ffe16ec
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354356
Tested-by: Mike Frysinger <vapier@google.com >
Reviewed-by: LaMont Jones <lamontjones@google.com >
2022-12-12 23:04:40 +00:00
d98f393524
upload: Allow user to configure unusual commit threshold
...
Add a per-remote option `uploadwarningthreshold` allowing the user to
override how many commits can be uploaded prior to a warning being
displayed.
Change-Id: Ia7e1b2c7de89a0bf9ca1c24cc83dc595b3667437
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354375
Tested-by: David Greenaway <dgreenaway@google.com >
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-12-12 22:19:57 +00:00
0324e43242
repo_trace: Avoid race conditions with trace_file updating.
...
Change-Id: I0bc1bb3c8f60465dc6bee5081688a9f163dd8cf8
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354515
Reviewed-by: Mike Frysinger <vapier@google.com >
Tested-by: Joanna Wang <jojwang@google.com >
2022-12-09 22:49:31 +00:00
8d25584f69
github: enable flake8 postsubmit testing
...
Change-Id: I8532f52b3016eb491ddeb48463459d74afd36015
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354514
Reviewed-by: Joanna Wang <jojwang@google.com >
Tested-by: Mike Frysinger <vapier@google.com >
2022-12-09 14:32:29 +00:00
0e4f1e7fba
Use --negotiation-tip in superproject fetches.
...
Bug: b/260645739
Change-Id: Ib0cdbb13f130b91ab14df9c60a510f1e27cca8e0
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354354
Reviewed-by: Mike Frysinger <vapier@google.com >
Tested-by: Joanna Wang <jojwang@google.com >
2022-12-09 14:25:15 +00:00
e815286492
tests: clean up repo_trace._TRACE_FILE patching
...
Patch this automatically for all tests rather than duplicating the
boilerplate in diff testcases.
Change-Id: I391d5c859974cda3d5680d34ede2ce6e9e925838
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354358
Reviewed-by: Joanna Wang <jojwang@google.com >
Tested-by: Mike Frysinger <vapier@google.com >
2022-12-08 22:22:39 +00:00
0ab6b11688
wrapper: switch to functools.lru_cache
...
No need to implement our own caching logic with newer Python.
Change-Id: Idc3243b8e22ff020817b0a4f18c9b86b1222d631
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354357
Tested-by: Mike Frysinger <vapier@google.com >
Reviewed-by: Josip Sokcevic <sokcevic@google.com >
2022-12-08 22:22:36 +00:00
a621254b26
tests: drop old unittest.main logic
...
We use pytest now which doesn't need this boilerplate.
Change-Id: Ib71d90b3f1669897814ee768927b5b595ca8d789
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354355
Reviewed-by: Josip Sokcevic <sokcevic@google.com >
Tested-by: Mike Frysinger <vapier@google.com >
v2.31
2022-12-08 17:17:30 +00:00
f159ce0f9e
sync: fix manifest sync-j handling
...
Since --jobs defaults to 0, not None, we never pull the value out
of the manifest. Treat values of 0 and None the same to fix.
Bug: http://b/239712300
Bug: http://b/260908907
Change-Id: I9b1026682072366616825fd72f90bd90c10a252f
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354254
Tested-by: Mike Frysinger <vapier@google.com >
Reviewed-by: Josip Sokcevic <sokcevic@google.com >
Reviewed-by: Sam Saccone <samccone@google.com >
2022-12-08 15:06:24 +00:00
802cd0c601
sync: Fix undefined variable in _FetchOne
...
If syncing in _FetchOne fails with GitError, sync_result does not get
set. There's already a separate local variable for success; do the same
for remote_fetched instead of referring to the conditionally defined
named tuple.
This bug is originally caused by a combination of ad8aa697
"sync: only
print error.GitError, don't raise that exception." and 1eddca84
"sync:
use namedtuples for internal return values".
Change-Id: I0f9dbafb97f8268044e5a56a6f92cf29bc23ca6a
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354176
Tested-by: Karsten Tausche <karsten@fairphone.com >
Reviewed-by: LaMont Jones <lamontjones@google.com >
2022-12-08 06:29:00 +00:00
100a214315
sync: finish marking REPO_AUTO_GC=1 as deprecated.
...
The wrong revision of the change was submitted as
d793553804
.
Change-Id: I6f3e4993cf40c30ccf0d69020177db8fe5f76b8c
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353934
Tested-by: LaMont Jones <lamontjones@google.com >
Reviewed-by: Sam Saccone <samccone@google.com >
2022-12-05 18:11:24 +00:00
8051cdb629
test_manifest_config_properties: use assertEqual
...
The method assertEquals is an deprecated alias for
assertEqual.
See: https://docs.python.org/3/library/unittest.html#deprecated-aliases
Change-Id: Id94ba6d6055bdc18b87c53e8729902bb278855aa
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354035
Reviewed-by: Mike Frysinger <vapier@google.com >
Tested-by: Daniel Kutik <daniel.kutik@lavawerk.com >
2022-12-05 13:09:09 +00:00
43549d8d08
sync: cleanup output when not doing GC
...
Do not use a progress bar when not doing GC, and restrict activity in
that case to only repairing preciousObject state.
This also includes additional cleanup based on review comments from
previous changes.
Change-Id: I48581c9d25da358bc7ae15f40e98d55bec142331
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353514
Tested-by: LaMont Jones <lamontjones@google.com >
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-12-02 22:50:23 +00:00
55b7125d6a
Revert "sync: save any cruft after calling git gc."
...
This bug-cacher related code is no longer needed.
This reverts commit 891e8f72ce
.
Change-Id: Ia94a2690ff149427fdcafacd39f5008cd60827d5
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353774
Reviewed-by: Mike Frysinger <vapier@google.com >
Reviewed-by: Sam Saccone <samccone@google.com >
Tested-by: LaMont Jones <lamontjones@google.com >
2022-12-02 22:40:06 +00:00
d793553804
sync: mark REPO_AUTO_GC=1 as deprecated.
...
REPO_AUTO_GC was introduced as a way for users to restore the previous
default behavior, since the default changed at the same time as the
option was added. As such, it should be marked as deprecated, and
removed entirely in a future release.
Change-Id: Ib73d98fbea693e7057cc4587928c225a9e4beab2
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353734
Reviewed-by: Sam Saccone <samccone@google.com >
Tested-by: LaMont Jones <lamontjones@google.com >
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-12-02 22:33:11 +00:00
ea5239ddd9
Fix ManifestProject.partial_clone_exclude property.
...
Bug: b/256358360
Change-Id: Ic6e3a049aa38827123d0324c8b14157562c5986e
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353574
Reviewed-by: Mike Frysinger <vapier@google.com >
Tested-by: Joanna Wang <jojwang@google.com >
Reviewed-by: Josip Sokcevic <sokcevic@google.com >
2022-12-02 14:57:56 +00:00
1b8714937c
release-process: update to use ./release/sign-tag.py
...
We have a helper script for signing releases now, so point the docs
to that rather than the multiple manual steps.
Change-Id: I309e883dbce1894650e31682d9975cf0d6bdeca3
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/352834
Tested-by: Mike Frysinger <vapier@google.com >
Reviewed-by: Josip Sokcevic <sokcevic@google.com >
2022-12-01 00:04:24 +00:00
50a2c0e368
wrapper.py: Replacing load_module() with exec_module()
...
Fixed "DeprecationWarning: the load_module() method is deprecated and
slated for removal in Python 3.12; use exec_module() instead." in
wrapper.py. Additionally removed Python 2 code (imp.load_source()).
Test: tox
Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com >
Change-Id: Ib7cc19b1c545f6449e034c4b01b582cf6cf4b581
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353237
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-11-28 15:06:59 +00:00
35af2f8daf
Fixed wrapper related warnings in tests
...
Multiple "Could not find reference" warnings in test_wrapper.py
and test_git_command.py resolved.
Test: tox
Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com >
Change-Id: Ic254c378bbdae6bc3f8f29682ababb37db76adfe
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353235
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-11-28 13:00:34 +00:00
e287fa760b
test_capture: allow both Unix and Windows line sep
...
On Linux/macOS we allow \n in the end of the line.
On Windows we allow both \r\n and \n. Here we also allow Unix line
seperators as tests might be excuted in for example git-shell.
Change-Id: I3975b563cf95407da92e5479980e670eb748b30e
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353181
Tested-by: Daniel Kutik <daniel.kutik@lavawerk.com >
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-11-28 06:39:31 +00:00
3593a10643
test_bad_path_name_checks: allow Windows path sep
...
With this change if a path ends with '/' on Linux/macOS
and ends with either '/' or '\' on Windows, the test will pass.
Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com >
Change-Id: Id7d1b134f9c0bdf7ceaf149af304bbf90cbd7b21
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353180
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-11-28 04:07:17 +00:00
003684b6e5
test: Fix char encoding issues on windows
...
Some tests were failing due to Windows not using utf-8
by default when executing the tests. Enforcing usage of utf-8
resolves these issues.
Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com >
Change-Id: If42f6be2a2b688a6105ecf4fcdb541aade24519a
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353179
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-11-27 17:03:41 +00:00
0297f8312c
test: fix path seperator errors on windows
...
Fixing multiple errors when running tests on Windows related
to path seperator being different ('\' instead of '/').
Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com >
Change-Id: I26b44d092b925edecab46a4d88e77dd9dcb8df28
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353178
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-11-27 17:03:01 +00:00
7b3afcab7a
tox: Allow passing positional arguments
...
Allows us to pass on arguments to run_tests and pytest after -- when
executing tox.
E.g.: To run all tests verbose in a test class:
tox -- -v tests/test_project.py::ReviewableBranchTests
Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com >
Change-Id: Ibd78856c6d4053c769f3d0b6130ebc8145275f78
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353176
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-11-27 11:35:46 +00:00
eda6b1ead7
trace: make test timeout after 2min
...
Before this commit, the test was hanging forever when
run on a Windows host. This should resolve that issue.
Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com >
Change-Id: Id9ea6d54926b797db3d2978a2ae2930088201eec
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353125
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-11-26 23:30:43 +00:00
4364a79088
tox: Make all tests timeout after 5min
...
Use pytest-timeout to make sure tests don't get stuck for more than
5 minutes. In future individual tests can exceed this timeout by
being decorated with @pytest.mark.timeout(600).
Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com >
Change-Id: I8f5b61a20230c22a86fd5636297c78f41369449a
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353124
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-11-26 23:30:37 +00:00
a98a5ebc6d
Update GH Action test-ci.yml dependencies
...
Updating version of checkout and setup-python actions.
Also making sure we install tox, tox-gh-actions into our venv.
Changes based on tox-gh-actions README.
Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com >
Change-Id: I18946a8b41d5a3c350deee3ddbde77b4c0b3bdfe
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353123
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-11-26 00:57:04 +00:00
f8d342beac
tox: enable python 3.10 testing
...
Note that in YAML, Python version 3.10 would be parsed as 3.1,
hence I put all the Python versions in quotes.
More on this:
https://github.com/actions/setup-python/issues/160
Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com >
Change-Id: Iba380a6a6a6de8486486c8981e712c7bf4dfe759
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353019
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-11-25 12:16:43 +00:00
6d2e8c8237
Resolved DeprecationWarning for currentThread()
...
In Python 3.10 onwards we see a DeprecationWarning:
currentThread() is deprecated, use current_thread() instead.
Same goes for getName(), replaced by name attribute.
Test: tox (python 3.6 - 3.10)
Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com >
Change-Id: I80ec819752a5276cff3b2dadba0ec10cc92d09a4
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353018
Reviewed-by: Mike Frysinger <vapier@google.com >
2022-11-25 08:34:57 +00:00
a24185ee6c
Set repo version to 2.30 (current)
...
Change-Id: Ie01ea8475b978f950471b0a52fc576e59060c6c5
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/352694
Reviewed-by: Jonathan Nieder <jrn@google.com >
Tested-by: Josip Sokcevic <sokcevic@google.com >
2022-11-23 01:45:59 +00:00
d686365449
Extract env building into a testable helper.
...
Previously env dict building was untested and mixed with other mutative
actions. Extract the dict building into a dedicated function and author
tests to ensure the functionality is working as expected.
BUG: b/255376186
BUG: https://crbug.com/gerrit/16247
Change-Id: I0c88e53eb285c5c3fb27f8e6b3a903aedb8e02a8
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/351874
Reviewed-by: LaMont Jones <lamontjones@google.com >
Tested-by: Sam Saccone <samccone@google.com >
v2.30
2022-11-16 18:26:49 +00:00
d3cadf1856
Do not set ALT object dirs when said path resolves to the same dir.
...
Due to symlink resolution git was treating this as two different directories even if the paths were the same. This mitigates the git core bug inside of repo (while the git core fix is being worked on).
Bug: b/255376186
Bug: https://crbug.com/gerrit/16247
Change-Id: I12458ee04c307be916851dddd36231997bc8839e
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/351836
Tested-by: Sam Saccone <samccone@google.com >
Reviewed-by: LaMont Jones <lamontjones@google.com >
2022-11-16 18:26:49 +00:00
fa90f7a36f
tests: Fix update-manpages test.
...
Change-Id: I58d85e06edeb9208a782957acc982e996c026ed2
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/351854
Reviewed-by: Sam Saccone <samccone@google.com >
Tested-by: LaMont Jones <lamontjones@google.com >
2022-11-16 16:53:49 +00:00
bee4efb874
subcmds: display correct path multitree messages
...
Correct usage of project.relpath for multi manifest workspaces.
Change-Id: Idc32873552fcdae6eec7b03dde2b2f31134b72fd
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/347534
Reviewed-by: Xin Li <delphij@google.com >
Tested-by: LaMont Jones <lamontjones@google.com >
2022-11-15 21:13:06 +00:00
f8af33c9f0
update-manpages: explicitly strip color codes
...
On some systems, help2man produces color codes in the output. Remove
them to avoid manpage churn.
Also begin adding unit tests.
Change-Id: I3f0204b19d9cae524d3cb5fcfb61ee309b0931fc
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/349655
Tested-by: LaMont Jones <lamontjones@google.com >
Reviewed-by: Xin Li <delphij@google.com >
2022-11-14 23:46:43 +00:00
ed25be569e
repo_trace: drop notification of trace file name.
...
The trace file is local to the workspace. We shouldn't tell the user
that on every command that they run.
Change-Id: I8674ab485bd5142814a043a225bf8aaca7795752
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/351234
Tested-by: LaMont Jones <lamontjones@google.com >
Reviewed-by: Xin Li <delphij@google.com >
2022-11-14 23:46:06 +00:00
afd767103e
repo_trace: adjust formatting, update man page.
...
No behavior change in this CL.
Change-Id: Iab1eb01864ea8a5aec3a683200764d20786b42de
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/351474
Tested-by: LaMont Jones <lamontjones@google.com >
Reviewed-by: Xin Li <delphij@google.com >
2022-11-14 23:46:06 +00:00
b240d28bc0
upload: track projects by path, rather than name
...
Since the same project can be checked out in multiple paths, we need to
track the "to be uploaded" projects by path, rather than project name.
Bug: crbug.com/gerrit/16260
Test: manual
Change-Id: Ic3dc81bb8acb34886baa6299e90a49c7ba372957
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/351054
Reviewed-by: Xin Li <delphij@google.com >
Tested-by: LaMont Jones <lamontjones@google.com >
2022-11-14 21:58:10 +00:00
47020ba249
trace: restore Progress indicator.
...
If we are not tracing to stderr, then we should still have progress
indication.
Change-Id: Ifc9678e1fccbd92251e972fcf25aad6369d60e15
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/351195
Reviewed-by: Sam Saccone <samccone@google.com >
Tested-by: LaMont Jones <lamontjones@google.com >
Reviewed-by: Xin Li <delphij@google.com >
v2.29.9
2022-11-10 00:44:33 +00:00
5ed8c63942
sync: REPO_AUTO_GC=1 to restore old behavior.
...
Add an environment variable to restore previous behavior, since the
older version of repo does not support `--auto-gc`.
Change-Id: I874dfb8fc3533a97b8adfd52125eb3d1d75e2f3c
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/351194
Reviewed-by: Sam Saccone <samccone@google.com >
Tested-by: LaMont Jones <lamontjones@google.com >
2022-11-10 00:44:33 +00:00
24c6314fca
Fix TRACE_FILE renaming.
...
Bug: b/258073923
Change-Id: I997961056388e1550711f73a6310788b5c7ad4d4
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/350934
Tested-by: Joanna Wang <jojwang@google.com >
Reviewed-by: LaMont Jones <lamontjones@google.com >
v2.29.8
2022-11-09 01:24:49 +00:00
7efab539f0
sync: no garbage collection by default
...
Adds --auto-gc and --no-auto-gc (default) options to control sync's
behavior around calling `git gc`.
Bug: b/184882274
Change-Id: I4d6ca3b233d79566f27e876ab2d79f238ebc12a9
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/344535
Reviewed-by: Xin Li <delphij@google.com >
Tested-by: LaMont Jones <lamontjones@google.com >
2022-11-08 19:54:20 +00:00
a3ff64cae5
Improve always-on-trace
...
Notes to the user need to go to stderr, and tracing should not be on for
fast exiting invocations (such as --help).
This makes it so that release/update-manpages works.
Change-Id: Ib183193c868a78c295a184c01c4532cd53d512eb
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/350794
Tested-by: LaMont Jones <lamontjones@google.com >
Reviewed-by: Xin Li <delphij@google.com >
2022-11-08 19:54:20 +00:00