<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/git-repo.git/subcmds, branch v2.9</title>
<subtitle>Mirror of gerrit.googlesource.com/git-repo</subtitle>
<id>https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.9</id>
<link rel='self' href='https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.9'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/'/>
<updated>2020-09-02T07:53:16+00:00</updated>
<entry>
<title>init: reject unknown args</title>
<updated>2020-09-02T07:53:16+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2020-08-27T05:50:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=0578ebf61a6269e4045153c7d618baebaf00d869'/>
<id>urn:sha1:0578ebf61a6269e4045153c7d618baebaf00d869</id>
<content type='text'>
If you pass args to `repo init` when first creating a checkout, the
repo launcher throws an error.  But the init subcommand that runs in
an existing checkout silently ignores them.  Throw a proper error.

Change-Id: I433bfcc73902d25f6b6a2974e77f6a977a75ed16
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/279696
Reviewed-by: Jonathan Nieder &lt;jrn@google.com&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>upload: exit non-zero when preupload hooks fail</title>
<updated>2020-07-25T08:31:52+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2020-07-22T07:23:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=80944b538d606a8ee143db85ca9e50305d3c73e4'/>
<id>urn:sha1:80944b538d606a8ee143db85ca9e50305d3c73e4</id>
<content type='text'>
Bug: https://crbug.com/gerrit/13159
Change-Id: Id140b619242c841223c6bc5d4aa0c37a7ce0219d
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/276294
Reviewed-by: Jonathan Nieder &lt;jrn@google.com&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>subcmds/sync.py: Fix typo in help</title>
<updated>2020-06-06T23:46:00+00:00</updated>
<author>
<name>Roger Shimizu</name>
<email>rosh@debian.org</email>
</author>
<published>2020-06-05T17:33:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=ac29ac397fdaacd1bcec8fad59d3ad62a1a1867c'/>
<id>urn:sha1:ac29ac397fdaacd1bcec8fad59d3ad62a1a1867c</id>
<content type='text'>
Change-Id: I70b63477241284249e395b8b0a220cb6f44f836b
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/270183
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Reviewed-by: David Pursehouse &lt;dpursehouse@digital.ai&gt;
Tested-by: David Pursehouse &lt;dpursehouse@digital.ai&gt;
</content>
</entry>
<entry>
<title>sync: fix duplicate word in description</title>
<updated>2020-05-24T23:51:28+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2020-05-24T18:56:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=7ae210a15bcf319744c2f4c3a3ea19f63444f14c'/>
<id>urn:sha1:7ae210a15bcf319744c2f4c3a3ea19f63444f14c</id>
<content type='text'>
Bug: https://crbug.com/gerrit/12814
Change-Id: Id722eec9a59dded588f13bc605ce2c94b4047265
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/268739
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
Reviewed-by: David Pursehouse &lt;dpursehouse@digital.ai&gt;
</content>
</entry>
<entry>
<title>Make partial clone imply no-clone-bundle by default.</title>
<updated>2020-05-21T19:47:36+00:00</updated>
<author>
<name>Xin Li</name>
<email>delphij@google.com</email>
</author>
<published>2020-05-20T23:03:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=d79a4bc51b6ca5b47bbea861143c72bccc0ad13a'/>
<id>urn:sha1:d79a4bc51b6ca5b47bbea861143c72bccc0ad13a</id>
<content type='text'>
For large projects, clone bundle is useful because it provided a way to
efficiently transfer a large portion of git objects through CDN, without
needing to interact with git server. However, with partial clones, the
intention is to not download most of the objects, so the use of clone
bundles would defeat the space savings normally seen with partial
clones, as they are downloaded before the first fetch.

A new option, --clone-bundle is added to override this behavior.
Add a new repo.clonebundle variable which remembers the choice if
explicitly given from command line at repo init.

Change-Id: I03638474af303a82af34579e16cd4700690b5f43
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/268452
Tested-by: Xin Li &lt;delphij@google.com&gt;
Reviewed-by: Jonathan Nieder &lt;jrn@google.com&gt;
</content>
</entry>
<entry>
<title>Fix how we format the full destination branch when uploading.</title>
<updated>2020-05-19T15:25:42+00:00</updated>
<author>
<name>Sean McAllister</name>
<email>smcallis@google.com</email>
</author>
<published>2020-05-18T15:15:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=682f0b6426a06ed1e89b130d50c6521b1c67d529'/>
<id>urn:sha1:682f0b6426a06ed1e89b130d50c6521b1c67d529</id>
<content type='text'>
If the dest-branch attribute is set in the project manifest, then
we need to push to that branch.  Previously, we would unconditionally
pre-pend the refs/heads prefix to it.  The dest-branch attribute is
allowed to be a ref expression though, so it may already have it.

Simple fix is to check if it already has the prefix before adding it.

Bug: crbug.com/gerrit/12770

Change-Id: I45d6107ed6cf305cf223023b0ddad4278f7f4146
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/268152
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: Sean McAllister &lt;smcallis@google.com&gt;
</content>
</entry>
<entry>
<title>repo info findRemoteLocalDiff use short branch</title>
<updated>2020-05-12T16:15:01+00:00</updated>
<author>
<name>Daniel Kutik</name>
<email>daniel.kutik@lavawerk.com</email>
</author>
<published>2020-05-08T05:46:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=e7082ccb54ad870b185e99d7e39d1959c65ff899'/>
<id>urn:sha1:e7082ccb54ad870b185e99d7e39d1959c65ff899</id>
<content type='text'>
When running repo info -d an error would be thrown saying:
  fatal: bad revision 'refs/remotes/m/refs/heads/master..'

Using the short branch name here instead, like 'refs/remotes/m/master..'
resolves this issue.

Signed-off-by: Daniel Kutik &lt;daniel.kutik@lavawerk.com&gt;
Change-Id: I50ea92c45c011b2c3e3a63803decb88e7837a380
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/266578
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>When writing manifest, set the dest-branch attribute for projects</title>
<updated>2020-04-20T16:35:02+00:00</updated>
<author>
<name>Sean McAllister</name>
<email>smcallis@google.com</email>
</author>
<published>2020-04-20T14:41:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=af908cb5438ec3c03a9a32d1a9f286aa5657ff88'/>
<id>urn:sha1:af908cb5438ec3c03a9a32d1a9f286aa5657ff88</id>
<content type='text'>
When generating a revision locked manifest, we need to know what
ref to push changes to when doing 'repo upload'.  This information
is lost when we lock the revision attribute to a particular commit
hash, so we need to expose it through the dest-branch attribute.

Bug: https://crbug.com/1005103
Test: manual execution
Change-Id: Ib31fd77ad8c9379759c4181dac1ea97de43eec35
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/263572
Tested-by: Sean McAllister &lt;smcallis@google.com&gt;
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>Expose upstream and dest-branch attributes through environment</title>
<updated>2020-04-16T18:42:53+00:00</updated>
<author>
<name>Sean McAllister</name>
<email>smcallis@google.com</email>
</author>
<published>2020-04-15T18:24:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=74e8ed4bde37a3ce42579e4601e0a54120853c89'/>
<id>urn:sha1:74e8ed4bde37a3ce42579e4601e0a54120853c89</id>
<content type='text'>
Recent changes in ChromeOS Infra to ensure we're reading from
snapshot manifests properly have exposed several bugs in our
assumptions about manifest files.  Mainly that the revision field
for a project does _not_ have to refer to a ref, it can just be
a commit hash.

Several places assume that the revision field can be parsed as a
ref to get the branch the project is on, which isn't true.  To fix
this we need to be able to look at the upstream and dest-branch
attributes of the repo, so we expose them through the environment
variables set in `repo forall`.

Test: manual 'repo forall' run
Bug: https://crbug.com/1032441

Change-Id: I2c039e0f4b2e0f430602932e91b782edb6f9b1ed
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/263132
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: Sean McAllister &lt;smcallis@google.com&gt;
</content>
</entry>
<entry>
<title>forall.py: Close file after removing the stream</title>
<updated>2020-04-14T06:49:31+00:00</updated>
<author>
<name>Karsten Pfeiffer-Raddatz</name>
<email>raddatz.karsten@gmail.com</email>
</author>
<published>2020-04-13T11:48:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=d086467012e1970f44f27b67b4296a2a6fb097d5'/>
<id>urn:sha1:d086467012e1970f44f27b67b4296a2a6fb097d5</id>
<content type='text'>
In order to remove the stream fileno() will be called on the filedescriptor.
If the file is already closed fileno() will raise an error and forall
will fail.

Bug: https://crbug.com/gerrit/12563
Change-Id: Ib7b895fe881c844e3eb3672b011fdcdbdae63024
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/262838
Reviewed-by: David Pursehouse &lt;dpursehouse@collab.net&gt;
Tested-by: Karsten Pfeiffer-Raddatz &lt;raddatz.karsten@gmail.com&gt;
</content>
</entry>
</feed>
