<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/git-repo.git/subcmds, branch v1.13.11</title>
<subtitle>Mirror of gerrit.googlesource.com/git-repo</subtitle>
<id>https://git.enea.com/cgit/tools/git-repo.git/atom?h=v1.13.11</id>
<link rel='self' href='https://git.enea.com/cgit/tools/git-repo.git/atom?h=v1.13.11'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/'/>
<updated>2020-02-11T04:31:45+00:00</updated>
<entry>
<title>Fixing forall subcommand for Py3</title>
<updated>2020-02-11T04:31:45+00:00</updated>
<author>
<name>Jiri Tyr</name>
<email>jiri.tyr@gmail.com</email>
</author>
<published>2020-02-06T16:32:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=68744dbc01490dc283db7c965c5cfe07135814ac'/>
<id>urn:sha1:68744dbc01490dc283db7c965c5cfe07135814ac</id>
<content type='text'>
Execution of 'repo forall -p -c' doesn't work with Py3 and ends up
with an error:

Got an error, terminating the pool: TypeError: can only concatenate
str (not "bytes") to str

That's fixed by using the decode() method.

Change-Id: Ice01aaa1822dde8d957b5bf096021dd5a2b7dd51
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/253659
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Reviewed-by: David Pursehouse &lt;dpursehouse@collab.net&gt;
Tested-by: Jiri Tyr &lt;jiri.tyr@gmail.com&gt;
(cherry picked from commit 83a3227b62c936b346b825b333fc2ca65528ecfd)
</content>
</entry>
<entry>
<title>remove spurious +x bits</title>
<updated>2020-02-11T04:31:03+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2020-02-09T09:35:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=ef412624e953db6afdf402b18b004c0beabc5917'/>
<id>urn:sha1:ef412624e953db6afdf402b18b004c0beabc5917</id>
<content type='text'>
These files are not directly executable, so drop the +x bits.

Change-Id: Iaf19a03a497686cc21103e7ddf08073173440dd1
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254076
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
Reviewed-by: David Pursehouse &lt;dpursehouse@collab.net&gt;
(cherry picked from commit e7c91889a6ff23931d3fbc25481b276e50ed8229)
</content>
</entry>
<entry>
<title>Fix inverted logic around [gitc-]init and -c</title>
<updated>2020-02-07T20:54:52+00:00</updated>
<author>
<name>Dan Willemsen</name>
<email>dwillemsen@google.com</email>
</author>
<published>2020-02-07T01:00:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=619a2b58871e03ecc4f40b93a183206b51853fa5'/>
<id>urn:sha1:619a2b58871e03ecc4f40b93a183206b51853fa5</id>
<content type='text'>
Instead of not using '-c' for '--current-branch' when using gitc, we
were only using '-c' when using gitc, so we still had the conflict with
the gitc option, and other users still couldn't use '-c'.

Test: repo init -u https://android.googlesource.com/platform/manifest; repo init -c
Test: repo gitc-init -u ... -b ... -c testing
Change-Id: I71e4950a49c281418249f0783c6a2ea34f0d3e2b
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/253795
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: Dan Willemsen &lt;dwillemsen@google.com&gt;
(cherry picked from commit 93293ca47f3a898b30eecf21e7b4e1038780c867)
</content>
</entry>
<entry>
<title>init: handle -c conflicts with gitc-init</title>
<updated>2020-02-05T18:04:11+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2020-02-05T05:01:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=75c02fe4cb5a22135e292c3083220e1f3d4cb349'/>
<id>urn:sha1:75c02fe4cb5a22135e292c3083220e1f3d4cb349</id>
<content type='text'>
We keep getting requests for init to support -c.  This conflicts with
gitc-init which allocates -c for its own use.  Lets make this dynamic
so we keep it with "init" but omit it for "gitc-init".

Bug: https://crbug.com/gerrit/10200
Change-Id: Ibf69c2bbeff638e28e63cb08926fea0c622258db
(cherry picked from commit 66098f707a1a3f352aac4c4bb2c4f88da070ca2a)
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/253392
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>init: Add '-c' as an alias to '--current-branch'</title>
<updated>2020-01-24T14:46:58+00:00</updated>
<author>
<name>Diogo Ferreira</name>
<email>diogo@underdev.org</email>
</author>
<published>2019-10-18T11:39:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=0eb2d3c8a0c59955e6b760f84904badc95b7fde8'/>
<id>urn:sha1:0eb2d3c8a0c59955e6b760f84904badc95b7fde8</id>
<content type='text'>
This makes it consistent with the short option for current-branch in
repo sync.

Change-Id: I2848e87f45a66ef8d829576d0c0c4c0f7a8636a0
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/241700
Tested-by: Diogo Ferreira &lt;deovferreira@gmail.com&gt;
Reviewed-by: David Pursehouse &lt;dpursehouse@collab.net&gt;
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>info: Add the manifest revision</title>
<updated>2020-01-24T14:46:30+00:00</updated>
<author>
<name>Diogo Ferreira</name>
<email>diogo@underdev.org</email>
</author>
<published>2019-10-14T15:28:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=e4d20372b26521ca936bdba7f4d99c47423b9c4a'/>
<id>urn:sha1:e4d20372b26521ca936bdba7f4d99c47423b9c4a</id>
<content type='text'>
After Ib546f5ebbc8a23875fbd14bf166fbe95b7dd244e, repo info now displays
the current project revision in the 'Current revision' field.

While the output is more consistent, there are use cases for the
revision expression as shown in the manifest. This patch re-adds the
manifest revision as a new 'Manifest revision' field.

Change-Id: I50c1559dcb7ceb69af07352b956d78f85b8f592e
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/240799
Tested-by: Diogo Ferreira &lt;deovferreira@gmail.com&gt;
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>help: unify command display</title>
<updated>2019-12-03T02:31:05+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2019-12-02T21:49:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=0b304c06ffdf3072fc498683be3e237f9b611a02'/>
<id>urn:sha1:0b304c06ffdf3072fc498683be3e237f9b611a02</id>
<content type='text'>
No functional changes, just unifying duplicate code paths.

Change-Id: I6afa797ca1e1eb90abdc0236325003ae070cbfb3
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/247293
Reviewed-by: David Pursehouse &lt;dpursehouse@collab.net&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>upload/editor: fix bytes/string confusion</title>
<updated>2019-11-16T23:55:30+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2019-11-15T06:19:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=70c54dc2550084ed022a2f134065a011f37f30aa'/>
<id>urn:sha1:70c54dc2550084ed022a2f134065a011f37f30aa</id>
<content type='text'>
The upload module tries to turn the strings into bytes before passing
to EditString, but it combines bytes &amp; strings causing an error.  The
return value might be bytes or string, but the caller only expects a
string.  Lets simplify this by sticking to strings everywhere and have
EditString take care of converting to/from bytes when reading/writing
the underlying files.  This also avoids possible locale confusion when
reading the file by forcing UTF-8 everywhere.

Bug: https://crbug.com/gerrit/11929
Change-Id: I07b146170c5e8b5b0500a2c79e4213cd12140a96
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/245621
Reviewed-by: David Pursehouse &lt;dpursehouse@collab.net&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>prune: handle branches that track missing branches</title>
<updated>2019-11-16T19:55:02+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2019-09-11T22:43:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=6da17751ca4e3b90834ca763f448ddc39b32651b'/>
<id>urn:sha1:6da17751ca4e3b90834ca763f448ddc39b32651b</id>
<content type='text'>
Series of steps:
* Create a local "b1" branch with `repo start b1` that tracks a remote
  branch (totally fine)
* Manually create a local "b2" branch with `git branch --track b1 b2`
  that tracks the local "b1" (uh-oh...)
* Delete the local "b1" branch manually or via `repo prune` (....)
* Try to process the "b2" branch with `repo prune`

Since b2 tracks a branch that no longer exists, everything blows up
at this point as we try to probe the non-existent ref.  Instead, we
should flag this as unknown and leave it up to the user to resolve.

This probably could come up if a local branch was tracking a remote
branch that was deleted from the server, and users ran something like
`repo sync --prune` which cleaned up the remote refs.

Bug: https://crbug.com/gerrit/11485
Change-Id: I6b6b6041943944b8efa6e2ad0b8b10f13a75a5c2
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/236793
Reviewed-by: David Pursehouse &lt;dpursehouse@collab.net&gt;
Reviewed-by: Kirtika Ruchandani &lt;kirtika@google.com&gt;
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>sync: merge project updates with status bar</title>
<updated>2019-11-12T23:33:51+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2019-08-26T19:32:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=3538dd224d6d48c60b140103f25d94f0e5f76160'/>
<id>urn:sha1:3538dd224d6d48c60b140103f25d94f0e5f76160</id>
<content type='text'>
The current sync output displays "Fetching project" and "Checking out
project" messages and progress bar updates independently leading to a
lot of spam.  Lets merge these periodic outputs with the status bar to
get a little bit tighter output in the normal case.  This doesn't solve
all our problems, but gets us closer.

Bug: https://crbug.com/gerrit/11293
Change-Id: Icd627830af4dd934a9355b7ace754b56dc96cfef
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/244934
Reviewed-by: David Pursehouse &lt;dpursehouse@collab.net&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
</feed>
