<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-clone.txt, branch v2.48.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.48.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.48.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-12-10T01:04:55Z</updated>
<entry>
<title>Merge branch 'bc/allow-upload-pack-from-other-people'</title>
<updated>2024-12-10T01:04:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-12-10T01:04:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=35f40385e441d5aa885f5aa813539d5ed9dc2d26'/>
<id>urn:sha1:35f40385e441d5aa885f5aa813539d5ed9dc2d26</id>
<content type='text'>
Loosen overly strict ownership check introduced in the recent past,
to keep the promise "cloning a suspicious repository is a safe
first step to inspect it".

* bc/allow-upload-pack-from-other-people:
  Allow cloning from repositories owned by another user
</content>
</entry>
<entry>
<title>Allow cloning from repositories owned by another user</title>
<updated>2024-11-15T02:05:06Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2024-11-15T00:54:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0ffb5a6bf1b0fd9ce0c0b1fd9ce9fd30b89a2563'/>
<id>urn:sha1:0ffb5a6bf1b0fd9ce0c0b1fd9ce9fd30b89a2563</id>
<content type='text'>
Historically, Git has allowed users to clone from an untrusted
repository, and we have documented that this is safe to do so:

    `upload-pack` tries to avoid any dangerous configuration options or
    hooks from the repository it's serving, making it safe to clone an
    untrusted directory and run commands on the resulting clone.

However, this was broken by f4aa8c8bb1 ("fetch/clone: detect dubious
ownership of local repositories", 2024-04-10) in an attempt to make
things more secure.  That change resulted in a variety of problems when
cloning locally and over SSH, but it did not change the stated security
boundary.  Because the security boundary has not changed, it is safe to
adjust part of the code that patch introduced.

To do that and restore the previous functionality, adjust enter_repo to
take two flags instead of one.

The two bits are

 - ENTER_REPO_STRICT: callers that require exact paths (as opposed
   to allowing known suffixes like ".git", ".git/.git" to be
   omitted) can set this bit.  Corresponds to the "strict" parameter
   that the flags word replaces.

 - ENTER_REPO_ANY_OWNER_OK: callers that are willing to run without
   ownership check can set this bit.

The former is --strict-paths option of "git daemon".  The latter is
set only by upload-pack, which honors the claimed security boundary.

Note that local clones across ownership boundaries require --no-local so
that upload-pack is used.  Document this fact in the manual page and
provide an example.

This patch was based on one written by Junio C Hamano.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: correct misleading descriptions for --shallow-exclude</title>
<updated>2024-11-05T06:53:23Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2024-11-04T19:02:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=00e10e075100a1c84549c4463a05837f215d91c0'/>
<id>urn:sha1:00e10e075100a1c84549c4463a05837f215d91c0</id>
<content type='text'>
The documentation for the --shallow-exclude option to clone/fetch/etc.
claims that the option takes a revision, but it does not.  As per
upload-pack.c's process_deepen_not(), it passes the option to
expand_ref() and dies if it does not find exactly one ref matching the
name passed.  Further, this has always been the case ever since these
options were introduced by the commits merged in a460ea4a3cb1 (Merge
branch 'nd/shallow-deepen', 2016-10-10).  Fix the documentation to
match the implementation.

Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'xx/remote-server-option-config'</title>
<updated>2024-10-15T20:56:43Z</updated>
<author>
<name>Taylor Blau</name>
<email>me@ttaylorr.com</email>
</author>
<published>2024-10-15T20:56:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fd98f659fda5a7704b10033f2b2efdae2b0a58e6'/>
<id>urn:sha1:fd98f659fda5a7704b10033f2b2efdae2b0a58e6</id>
<content type='text'>
A new configuration variable remote.&lt;name&gt;.serverOption makes the
transport layer act as if the --serverOption=&lt;value&gt; option is
given from the command line.

* xx/remote-server-option-config:
  ls-remote: leakfix for not clearing server_options
  fetch: respect --server-option when fetching multiple remotes
  transport.c::handshake: make use of server options from remote
  remote: introduce remote.&lt;name&gt;.serverOption configuration
  transport: introduce parse_transport_option() method
</content>
</entry>
<entry>
<title>transport.c::handshake: make use of server options from remote</title>
<updated>2024-10-08T17:22:08Z</updated>
<author>
<name>Xing Xin</name>
<email>xingxin.xx@bytedance.com</email>
</author>
<published>2024-10-08T03:38:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=094f78a16a6c150ff125afd9c3f2773b47384c06'/>
<id>urn:sha1:094f78a16a6c150ff125afd9c3f2773b47384c06</id>
<content type='text'>
Utilize the `server_options` from the corresponding remote during the
handshake in `transport.c` when Git protocol v2 is detected. This helps
initialize the `server_options` in `transport.h:transport` if no server
options are set for the transport (typically via `--server-option` or
`-o`).

While another potential place to incorporate server options from the
remote is in `transport.c:transport_get`, setting server options for a
transport using a protocol other than v2 could lead to unexpected errors
(see `transport.c:die_if_server_options`).

Relevant tests and documentation have been updated accordingly.

Signed-off-by: Xing Xin &lt;xingxin.xx@bytedance.com&gt;
Reviewed-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: apply synopsis simplification on git-clone and git-init</title>
<updated>2024-09-24T17:20:26Z</updated>
<author>
<name>Jean-Noël Avila</name>
<email>jn.avila@free.fr</email>
</author>
<published>2024-09-24T07:08:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=22293895c000e89997b2197a7b2b17cdf3a36369'/>
<id>urn:sha1:22293895c000e89997b2197a7b2b17cdf3a36369</id>
<content type='text'>
With the new synopsis formatting backend, no special asciidoc markup
is needed.

Signed-off-by: Jean-Noël Avila &lt;jn.avila@free.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: git-clone fix discrepancy between asciidoc and asciidoctor</title>
<updated>2024-07-20T23:24:12Z</updated>
<author>
<name>Jean-Noël Avila</name>
<email>jn.avila@free.fr</email>
</author>
<published>2024-07-20T17:34:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6474da0aa4d411e12fd4962b3e81c6d4e9db6b12'/>
<id>urn:sha1:6474da0aa4d411e12fd4962b3e81c6d4e9db6b12</id>
<content type='text'>
Asciidoc.py does not have the concept of generalized roles, whereas
asciidoctor interprets [foo]`blah` as blah with role foo in the
synopsis, making in effect foo disappear in the output. Note that
square brackets not directly followed by an inline markup do not
define a role, which is why we do not have the issue on other parts of
the documentation.

In order to get a consistant result across asciidoctor and
asciidoc.py, the hack is to use the {empty} entity
to split the bracket part from the inline format part.

Signed-off-by: Jean-Noël Avila &lt;jn.avila@free.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: git-clone: apply new documentation formatting guidelines</title>
<updated>2024-03-29T17:57:40Z</updated>
<author>
<name>Jean-Noël Avila</name>
<email>jn.avila@free.fr</email>
</author>
<published>2024-03-29T11:19:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=76880f0510c6be9f6385f2d43dcfcba4eca9ccbc'/>
<id>urn:sha1:76880f0510c6be9f6385f2d43dcfcba4eca9ccbc</id>
<content type='text'>
Signed-off-by: Jean-Noël Avila &lt;jn.avila@free.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ja/doc-markup-fixes'</title>
<updated>2024-03-21T21:55:13Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-03-21T21:55:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=81ba11b7c47bbe3005360d088215a2433e63c670'/>
<id>urn:sha1:81ba11b7c47bbe3005360d088215a2433e63c670</id>
<content type='text'>
Mark-ups used in the documentation has been improved for
consistency.

* ja/doc-markup-fixes:
  doc: git-clone: format placeholders
  doc: git-clone: format verbatim words
  doc: git-init: rework config item init.templateDir
  doc: git-init: rework definition lists
  doc: git-init: format placeholders
  doc: git-init: format verbatim parts
</content>
</entry>
<entry>
<title>doc: git-clone: format placeholders</title>
<updated>2024-03-11T16:58:11Z</updated>
<author>
<name>Jean-Noël Avila</name>
<email>jn.avila@free.fr</email>
</author>
<published>2024-03-10T19:10:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=45d5ed3e50375a4b1c5d1bf49128aec975b0546d'/>
<id>urn:sha1:45d5ed3e50375a4b1c5d1bf49128aec975b0546d</id>
<content type='text'>
With the new formatting rules, we use _&lt;placeholders&gt;_.

Signed-off-by: Jean-Noël Avila &lt;jn.avila@free.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
