<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-clone.sh, branch v1.5.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.5.2</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.5.2'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2007-05-14T21:24:02Z</updated>
<entry>
<title>Fix git-clone buglet for remote case.</title>
<updated>2007-05-14T21:24:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-05-14T21:24:02Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=223fa32784c79bdae7e68266511f9b5e0d65d03e'/>
<id>urn:sha1:223fa32784c79bdae7e68266511f9b5e0d65d03e</id>
<content type='text'>
c2f599e09fd0496413d1744b5b89b9b5c223555d introduced a buglet while
cloning from a remote URL; we forgot to squelch the unnecessary
error message when we try to cd to the given "remote" name,
in order to see if it is a local directory.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git-clone: don't get fooled by $PWD</title>
<updated>2007-05-10T20:26:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-05-10T00:11:15Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=c2f599e09fd0496413d1744b5b89b9b5c223555d'/>
<id>urn:sha1:c2f599e09fd0496413d1744b5b89b9b5c223555d</id>
<content type='text'>
If you have /home/me/git symlink pointing at /pub/git/mine,
trying to clone from /pub/git/his/ using relative path would not
work as expected:

	$ cd /home/me
        $ cd git
        $ ls ../
        his    mine
        $ git clone -l -s -n ../his/stuff.git

This is because "cd ../his/stuff.git" done inside git-clone to
check if the repository is local is confused by $PWD, which is
set to /home/me, and tries to go to /home/his/stuff.git which is
different from /pub/git/his/stuff.git.

We could probably say "set -P" (or "cd -P") instead, if we know
the shell is POSIX, but the way the patch is coded is probably
more portable.

[jc: this is updated with Andy Whitcroft's improvements]

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git-clone: fix dumb protocol transport to clone from pack-pruned ref</title>
<updated>2007-04-21T00:25:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-04-21T00:25:27Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=928c210a47fb7e38c56744bb14570638e6c23d7f'/>
<id>urn:sha1:928c210a47fb7e38c56744bb14570638e6c23d7f</id>
<content type='text'>
This forward-ports a fix from 2986c022 to git-clone.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>http-fetch: don't use double-slash as directory separator in URLs</title>
<updated>2007-03-28T11:44:16Z</updated>
<author>
<name>Gerrit Pape</name>
<email>pape@smarden.org</email>
</author>
<published>2007-03-28T09:46:15Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=2afea3bcd2a2b3327d7e8bdabc9aebd6bef24c6e'/>
<id>urn:sha1:2afea3bcd2a2b3327d7e8bdabc9aebd6bef24c6e</id>
<content type='text'>
Please see http://bugs.debian.org/409887

http-fetch expected the URL given at the command line to have a trailing
slash anyway, and then added '/objects...' when requesting objects files
from the http server.

Now it doesn't require the trailing slash in &lt;url&gt; anymore, and strips
trailing slashes if given nonetheless.

Signed-off-by: Gerrit Pape &lt;pape@smarden.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>make git clone -q suppress the noise with http fetch</title>
<updated>2007-03-20T06:46:30Z</updated>
<author>
<name>Chris Wright</name>
<email>chrisw@sous-sol.org</email>
</author>
<published>2007-03-20T02:18:18Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=7e8c8255e9bf33dd046b95c4bd1ef554ad3c71b2'/>
<id>urn:sha1:7e8c8255e9bf33dd046b95c4bd1ef554ad3c71b2</id>
<content type='text'>
We already have -q in git clone.  So for those who care to suppress
the noise during an http based clone, make -q actually do a quiet
http fetch.

Signed-off-by: Chris Wright &lt;chrisw@sous-sol.org&gt;
Cc: Fernando Herrera &lt;fherrera@onirica.com&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Fixup no-progress for fetch &amp; clone</title>
<updated>2007-02-24T08:26:18Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-02-23T19:03:10Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=b0e908977ebe43b49badad7fe34bf259dd5d263b'/>
<id>urn:sha1:b0e908977ebe43b49badad7fe34bf259dd5d263b</id>
<content type='text'>
The intent of the commit 'fetch &amp; clone: do not output progress when
not on a tty' was to make fetching and cloning less chatty when
output was not redirected (such as in a cron job).

However, there was a serious thinko in that commit. It assumed that
the client _and_ the server got this update at the same time. But
this is obviously not the case, and therefore upload-pack died on
seeing the option "--no-progress".

This patch fixes that issue by making it a protocol option. So, until
your server is updated, you still see the progress, but once the
server has this patch, it will be quiet.

A minor issue was also fixed: when cloning, the checkout did not
heed no_progress.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>fetch &amp; clone: do not output progress when not on a tty</title>
<updated>2007-02-20T03:20:05Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-02-20T02:01:44Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=83a5ad61268bbfea7e0d3180528366690f951554'/>
<id>urn:sha1:83a5ad61268bbfea7e0d3180528366690f951554</id>
<content type='text'>
This adds the option "--no-progress" to fetch-pack and upload-pack,
and makes fetch and clone pass this option when stdout is not a tty.

While at documenting that option, also document --strict and --timeout
options for upload-pack.

Signed-off-by: Johannes Schindelin &lt;Johannes.Schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git-clone --reference: work well with pack-ref'ed reference repository</title>
<updated>2007-02-07T10:10:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-02-07T10:10:56Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=099c7837678361985ca9df1240cdaf6a42fc89f9'/>
<id>urn:sha1:099c7837678361985ca9df1240cdaf6a42fc89f9</id>
<content type='text'>
Earlier we only used loose refs to anchor already existing
objects.  When cloning from a repository that forked relatively
long time ago from the reference repository, this made the
want/have exchange by fetch-pack to do unnecessary work.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git-clone --reference: saner handling of borrowed symrefs.</title>
<updated>2007-02-04T11:28:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-02-04T11:25:12Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=1f7d1a53fed40608e76200f941e6689b53752747'/>
<id>urn:sha1:1f7d1a53fed40608e76200f941e6689b53752747</id>
<content type='text'>
When using --reference to borrow objects from a neighbouring
repository while cloning, we copy the entire set of refs under
temporary "refs/reference-tmp/refs" space and set up the object
alternates.  However, a textual symref copied this way would not
point at the right place, and causes later steps to emit error
messages (which is harmless but still alarming).  This is most
visible when using a clone created with the separate-remote
layout as a reference, because such a repository would have
refs/remotes/origin/HEAD with 'ref: refs/remotes/origin/master'
as its contents.

Although we do not create symbolic-link based refs anymore, they
have the same problem because they are always supposed to be
relative to refs/ hierarchy (we dereference by hand, so it only
is good for HEAD and nothing else).

In either case, the solution is simply to remove them after
copying under refs/reference-tmp; if a symref points at a true
ref, that true ref itself is enough to ensure that objects
reachable from it do not needlessly get fetched.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Escape --upload-pack from expr.</title>
<updated>2007-01-31T21:09:58Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2007-01-30T18:11:49Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=4a91a1f37e8813bf3b7de00de5b3a7ab1df89451'/>
<id>urn:sha1:4a91a1f37e8813bf3b7de00de5b3a7ab1df89451</id>
<content type='text'>
Recent commit ae1dffcb28ee89a23f8d2747be65e17c8eab1690 by Junio
changed the way --upload-pack was passed around between clone,
fetch and ls-remote and modified the handling of the command
line parameter parsing.

Unfortunately FreeBSD 6.1 insists that the expression

  expr --upload-pack=git-upload-pack : '-[^=]*=\(.*\)'

is illegal, as the --upload-pack option is not supported by their
implementation of expr.

Elsewhere in Git we use z as a leading prefix of both arguments,
ensuring the -- isn't seen by expr.

Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
