<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/git-repo.git, branch v2.46</title>
<subtitle>Mirror of gerrit.googlesource.com/git-repo</subtitle>
<id>https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.46</id>
<link rel='self' href='https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.46'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/'/>
<updated>2024-07-02T19:03:54+00:00</updated>
<entry>
<title>project: ignore more curl failure modes</title>
<updated>2024-07-02T19:03:54+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2024-07-02T18:52:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=0444ddf78e3026056ee3786119e595909c039ff2'/>
<id>urn:sha1:0444ddf78e3026056ee3786119e595909c039ff2</id>
<content type='text'>
Current clone bundle fetches from Google storage results HTTP/404
and curl exiting 56.  This is basically WAI, so stop emitting
verbose error output whenever that happens.  Also add a few more
curl exit statuses based on chromite history, and document them.

Change-Id: I3109f8a8a19109ba9bbd62780b40bbcd4fce9b76
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/432197
Commit-Queue: Mike Frysinger &lt;vapier@google.com&gt;
Reviewed-by: Gavin Mak &lt;gavinmak@google.com&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>logging: Fix log formatting with colored output</title>
<updated>2024-07-02T06:24:31+00:00</updated>
<author>
<name>Shik Chen</name>
<email>shik@google.com</email>
</author>
<published>2024-07-01T10:51:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=9bf8236c24839045787fa284471fab950485285c'/>
<id>urn:sha1:9bf8236c24839045787fa284471fab950485285c</id>
<content type='text'>
The log message is already formatted before being passed to the colorer.
To avoid the exception "TypeError: not enough arguments for format
string", we should use the `nofmt_colorer` instead.

This bug occurs only when the formatted string still contains '%'
character. The following snippet can reproduce the bug:

```
from repo_logging import RepoLogger
RepoLogger(__name__).error("%s", "100% failed")
```

Change-Id: I4e3977b3d21aec4e0deb95fc1c6dd1e59272d695
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/432017
Tested-by: Shik Chen &lt;shik@google.com&gt;
Commit-Queue: Shik Chen &lt;shik@google.com&gt;
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>upload: add a --topic option for setting topic explicitly</title>
<updated>2024-07-01T17:54:19+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2024-07-01T00:12:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=87f52f308c48c11a99cefcc308a0994abeb2a7ff'/>
<id>urn:sha1:87f52f308c48c11a99cefcc308a0994abeb2a7ff</id>
<content type='text'>
Let people specify the exact topic when uploading CLs.  The existing
-t option only supports setting the topic to the current local branch.

Add a --topic-branch long option to the existing -t to align it a bit
better with --hashtag &amp; --hashtag-branch.

Change-Id: I010abc4a7f3c685021cae776dd1e597c22b79135
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/431997
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
Reviewed-by: Gavin Mak &lt;gavinmak@google.com&gt;
Commit-Queue: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>sync: Abort rebase in progress if force-checkout is set</title>
<updated>2024-05-23T14:14:18+00:00</updated>
<author>
<name>Erik Elmeke</name>
<email>erik@haleytek.corp-partner.google.com</email>
</author>
<published>2024-04-29T09:26:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=562cea77580d5f217be73f21757c7d5b32d2d11f'/>
<id>urn:sha1:562cea77580d5f217be73f21757c7d5b32d2d11f</id>
<content type='text'>
This will make "repo sync -d --force-checkout" more reliable
in CI automation, as there are fewer things in the way that may
need manual intervention.

Bug: b/40015382
Change-Id: I8a79971724a3d9a8e2d682b7a0c04deda9e34177
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/423317
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: Erik Elmeke &lt;erik@haleytek.corp-partner.google.com&gt;
Commit-Queue: Erik Elmeke &lt;erik@haleytek.corp-partner.google.com&gt;
</content>
</entry>
<entry>
<title>ssh: Set git protocol version 2 on SSH ControlMaster</title>
<updated>2024-05-16T13:26:46+00:00</updated>
<author>
<name>Erik Elmeke</name>
<email>erik@haleytek.corp-partner.google.com</email>
</author>
<published>2024-02-29T16:33:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=eede374e3ec446d5f03c12a886efcb2d8f946917'/>
<id>urn:sha1:eede374e3ec446d5f03c12a886efcb2d8f946917</id>
<content type='text'>
According to https://git-scm.com/docs/protocol-v2#_ssh_and_file_transport,
when using SSH, the environment variable GIT_PROTOCOL must be set
when establishing the connection to the git server.

Normally git does this by itself. But in repo-tool where the SSH
connection is managed by the repo-tool, it must be passed in
explicitly instead.

Under some circumstances of environment configuration, this
caused all repo sync commands over ssh to always use
git protocol version 1. Even when git was configured to use
version 2.

Using git protocol v2 can significantly improve fetch speeds,
since it uses server side filtering of refs, reducing the
amount of unneccessary objects to send.

Change-Id: I6d4c3b7300a6090d707480b1a638ed03622fa71a
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/411362
Tested-by: Erik Elmeke &lt;erik@haleytek.corp-partner.google.com&gt;
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Commit-Queue: Erik Elmeke &lt;erik@haleytek.corp-partner.google.com&gt;
</content>
</entry>
<entry>
<title>upload: drop check for uncommitted local changes</title>
<updated>2024-05-14T02:32:27+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2024-05-13T18:27:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=2c5fb84d357d9df797b9186b4dc711cf723cb535'/>
<id>urn:sha1:2c5fb84d357d9df797b9186b4dc711cf723cb535</id>
<content type='text'>
git push, like most git commands, does not warn or otherwise prompt
users when there are local uncommitted changes.  To simplify the
upload logic, and to harmonize repo upload with git push as a more
git-esque flow, stop checking/warning/prompting the user here too.

Change-Id: Iee18132f0faad0881f1a796cb58821328e04b694
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/425337
Reviewed-by: Josip Sokcevic &lt;sokcevic@google.com&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
Commit-Queue: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>git: raise hard version to 1.9.1</title>
<updated>2024-05-01T15:23:50+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2024-03-21T17:06:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=12f6dc49e9827e51f0deff5730e734ead52acf71'/>
<id>urn:sha1:12f6dc49e9827e51f0deff5730e734ead52acf71</id>
<content type='text'>
Debian 7 Wheezy went EOL in May 2018.  We don't need to carry support
for that anymore as there have been 5 major releases since.  Ubuntu
Precise went EOL in Apr 2019 (including the extended support phase).
That means we can bump the required git version from 1.7.9 to 1.9.1.

git-1.7.9 was released in 2012 while git-1.9.1 was released in 2014.
So that shouldn't be a problem either.  And we've been warning people
using git versions older than 1.9.1 for 3 years now that they need to
upgrade.

Change-Id: Ifbbf72f51010b0a944c2785895d1b605333f9146
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/415637
Reviewed-by: Josip Sokcevic &lt;sokcevic@google.com&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
Commit-Queue: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>release: update-hooks: helper for automatically syncing hooks</title>
<updated>2024-04-23T18:31:51+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2024-04-23T16:17:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=5591d99ee239be9116f4879bfea4a538b0b89e9c'/>
<id>urn:sha1:5591d99ee239be9116f4879bfea4a538b0b89e9c</id>
<content type='text'>
These hooks are maintained in other projects.  Add a script to automate
their import so people don't send us changes directly, and we can try to
steer them to the correct place.

Change-Id: Iac0bdb3aae84dda43a1600e73107555b513ce82b
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/422177
Commit-Queue: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
Reviewed-by: Josip Sokcevic &lt;sokcevic@google.com&gt;
</content>
</entry>
<entry>
<title>gitc: delete a few more dead references</title>
<updated>2024-04-18T02:30:06+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2024-04-11T12:33:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=9d865454aaf0ea41927332768e55b5b2f56e2533'/>
<id>urn:sha1:9d865454aaf0ea41927332768e55b5b2f56e2533</id>
<content type='text'>
Change-Id: I1da6f2ee799c735a63ac3ca6e5abd1211af10433
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/419217
Reviewed-by: Josip Sokcevic &lt;sokcevic@google.com&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
Commit-Queue: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>man: regenerate man pages</title>
<updated>2024-04-18T02:28:33+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2024-04-11T12:32:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=cbd78a91943d1099dad8e285c5adfcf3a269b7ad'/>
<id>urn:sha1:cbd78a91943d1099dad8e285c5adfcf3a269b7ad</id>
<content type='text'>
Change-Id: I8d9dcb37f315d4208b7c8005206ae939dad79a3e
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/419197
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
Commit-Queue: Mike Frysinger &lt;vapier@google.com&gt;
Reviewed-by: Josip Sokcevic &lt;sokcevic@google.com&gt;
</content>
</entry>
</feed>
