<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/git-repo.git/project.py, branch v2.29</title>
<subtitle>Mirror of gerrit.googlesource.com/git-repo</subtitle>
<id>https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.29</id>
<link rel='self' href='https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.29'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/'/>
<updated>2022-08-22T19:34:46+00:00</updated>
<entry>
<title>project: initialize new manifests in temp dirs</title>
<updated>2022-08-22T19:34:46+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2021-11-18T20:53:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=07d21e6bde9bd7efdfb8f25f2ed23f023daa5c1f'/>
<id>urn:sha1:07d21e6bde9bd7efdfb8f25f2ed23f023daa5c1f</id>
<content type='text'>
If initializing the manifest fails for any reason, don't leave it in
a half complete state.  This can cause problems if/when the user tries
to reinit because different codepaths will be taken.  For example, if
we initialize manifests.git and don't finish probing the remote to see
what default branch it uses, we end up always using "master" even if
that isn't what the remote uses.

To avoid all of this, use .tmp dirs when initializing, and rename to
the final path only after we complete all the right steps.

We should roll this out to all projects we clone, but start with the
manifest project for now.

Bug: https://crbug.com/gerrit/13526
Bug: https://crbug.com/gerrit/15805
Change-Id: I0214338de69ee11e090285c6b0b211052804af06
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/343539
Reviewed-by: LaMont Jones &lt;lamontjones@google.com&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>add a few more docs to existing funcs</title>
<updated>2022-08-18T17:31:01+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2020-12-08T03:04:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=790f4cea7aa95667296e0aa22eb0690df91c45e8'/>
<id>urn:sha1:790f4cea7aa95667296e0aa22eb0690df91c45e8</id>
<content type='text'>
Change-Id: I27317a59aba67c05ca1fd333e8f064c0edccb209
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/343185
Reviewed-by: LaMont Jones &lt;lamontjones@google.com&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>start: do not swallow git output all the time</title>
<updated>2022-08-18T16:43:39+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2022-08-18T13:17:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=ad1b7bd2e2d4fb636bef03d4b056b2f9de1fbf19'/>
<id>urn:sha1:ad1b7bd2e2d4fb636bef03d4b056b2f9de1fbf19</id>
<content type='text'>
Normally git produces no output when creating or switching branches.
If there's a problem though, we want to show that to the user.  So
switch from capturing all output to running in quiet mode.

Bug: https://crbug.com/gerrit/15819
Change-Id: I7873ecc7c3bacce591899cc9471cb0244eb74541
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/343454
Reviewed-by: LaMont Jones &lt;lamontjones@google.com&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>project: simplify GetRemote a bit</title>
<updated>2022-08-17T16:54:21+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2022-07-10T08:56:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=dede564c3dc62f985bc79b11a3dd78b220114683'/>
<id>urn:sha1:dede564c3dc62f985bc79b11a3dd78b220114683</id>
<content type='text'>
We almost always use self.remote.name when calling self.GetRemote,
so make that the default to simplify the code a bit.

Change-Id: Ifdf6e1370d6b8963b44e6d384b0fac8fa5c4f2ba
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/343184
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
Reviewed-by: LaMont Jones &lt;lamontjones@google.com&gt;
</content>
</entry>
<entry>
<title>upload: Add ready flag to remove wip</title>
<updated>2022-08-03T20:17:06+00:00</updated>
<author>
<name>William Escande</name>
<email>wescande@google.com</email>
</author>
<published>2022-08-02T23:05:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=ac76fd3e3a08024493f28913ec0c9660282d5f5b'/>
<id>urn:sha1:ac76fd3e3a08024493f28913ec0c9660282d5f5b</id>
<content type='text'>
The `--wip` allow to bulk push changed as work-in-progress. This CL
intend to allow the opposite opperation by removing the wip mark on the
CL and set it to be ready to review

Change-Id: If0743c5b14829f77be2def5a8547060d06a5648c
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/342214
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: William Escande &lt;wescande@google.com&gt;
</content>
</entry>
<entry>
<title>status, diff: display correct path for multi-manifest</title>
<updated>2022-07-14T16:00:18+00:00</updated>
<author>
<name>LaMont Jones</name>
<email>lamontjones@google.com</email>
</author>
<published>2022-06-22T19:21:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=8501d4602a4c85f1e22c7a51ad191af8166efecd'/>
<id>urn:sha1:8501d4602a4c85f1e22c7a51ad191af8166efecd</id>
<content type='text'>
Display the project path relative to the outermost manifest by default,
and relative to the sub manifest only when --this-manifest-only is
specified.

For project-related diagnostic messages, use the outermost manifest for
messages.

Change-Id: I4537d7dd412a2c182e77d6720e95c1b0ef70eb0e
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/340754
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: LaMont Jones &lt;lamontjones@google.com&gt;
</content>
</entry>
<entry>
<title>project: simplify if-statement</title>
<updated>2022-07-11T17:58:06+00:00</updated>
<author>
<name>Martin Geisler</name>
<email>mgeisler@google.com</email>
</author>
<published>2022-07-08T09:05:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=8db78c7d4db84ff9e191457bbf4b1254da321c7e'/>
<id>urn:sha1:8db78c7d4db84ff9e191457bbf4b1254da321c7e</id>
<content type='text'>
Change-Id: I05e4505b45963fe6e85cf74a669afafd00fc83c0
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/340457
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: Martin Geisler &lt;mgeisler@google.com&gt;
</content>
</entry>
<entry>
<title>upload: add ‘--ignore-untracked-files’ option</title>
<updated>2022-07-11T17:57:43+00:00</updated>
<author>
<name>Martin Geisler</name>
<email>mgeisler@google.com</email>
</author>
<published>2022-07-08T08:50:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=9fb64ae29cb978f869de5ff11a47f86e070b4274'/>
<id>urn:sha1:9fb64ae29cb978f869de5ff11a47f86e070b4274</id>
<content type='text'>
This option will suppress the

    Uncommitted changes in ... (did you forget to amend?)

prompt when there are untracked (unknown) files in the working copy.
The prompt is still shown if tracked files are modified.

Change-Id: Ia3fcc82989b7fad09b69214eda31e2d0dfc14600
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/340456
Tested-by: Martin Geisler &lt;mgeisler@google.com&gt;
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>Fix Projects.shareable_dirs</title>
<updated>2022-06-08T16:49:08+00:00</updated>
<author>
<name>LaMont Jones</name>
<email>lamontjones@google.com</email>
</author>
<published>2022-06-07T18:24:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=68d69635c7bfef6ed8a5c7e29246265611471e0f'/>
<id>urn:sha1:68d69635c7bfef6ed8a5c7e29246265611471e0f</id>
<content type='text'>
If this tree is not using alternates for object sharing, then we need to
continue to call it a shared directory.

Bug: https://bugs.chromium.org/p/gerrit/issues/detail?id=15982
Test: manual
Change-Id: I1750f10b192504ac67f552222f8ddb9809d344fe
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/338974
Tested-by: LaMont Jones &lt;lamontjones@google.com&gt;
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>Only sync superproject if it will be used.</title>
<updated>2022-06-08T16:49:08+00:00</updated>
<author>
<name>LaMont Jones</name>
<email>lamontjones@google.com</email>
</author>
<published>2022-06-01T21:03:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=ff6b1dae1e9f2e7405690c1aeedf7e0c7d768460'/>
<id>urn:sha1:ff6b1dae1e9f2e7405690c1aeedf7e0c7d768460</id>
<content type='text'>
If the user says `--no-use-superproject`, then do not bother syncing the
superproject.

Also add/update docstrings and comments throughout.

Change-Id: I9cdad706130501bab9a22d3099a1dae605e9c194
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/338975
Tested-by: LaMont Jones &lt;lamontjones@google.com&gt;
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
</feed>
