<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin/clone.c, branch v2.4.6</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.4.6</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.4.6'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-06-16T21:33:52Z</updated>
<entry>
<title>Merge branch 'jk/clone-dissociate' into maint</title>
<updated>2015-06-16T21:33:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-06-16T21:33:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=37d6f933dff7d5c295870c85399f5fd22072643a'/>
<id>urn:sha1:37d6f933dff7d5c295870c85399f5fd22072643a</id>
<content type='text'>
Code clean-up.

* jk/clone-dissociate:
  clone: reorder --dissociate and --reference options
  clone: use OPT_STRING_LIST for --reference
</content>
</entry>
<entry>
<title>Merge branch 'mh/clone-verbosity-fix' into maint</title>
<updated>2015-06-05T19:00:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-06-05T19:00:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a3821a1ae5580ac9788d866c292376070d3e5133'/>
<id>urn:sha1:a3821a1ae5580ac9788d866c292376070d3e5133</id>
<content type='text'>
Git 2.4 broke setting verbosity and progress levels on "git clone"
with native transports.

* mh/clone-verbosity-fix:
  clone: call transport_set_verbosity before anything else on the newly created transport
</content>
</entry>
<entry>
<title>clone: reorder --dissociate and --reference options</title>
<updated>2015-05-27T19:37:39Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-05-21T04:16:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=14f8b9b494c990188a4dfe772c384b1be5f8351b'/>
<id>urn:sha1:14f8b9b494c990188a4dfe772c384b1be5f8351b</id>
<content type='text'>
These options are intimately related, so it makes sense to
list them nearby in the "-h" output (they are already
adjacent in the manpage).

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>clone: use OPT_STRING_LIST for --reference</title>
<updated>2015-05-27T19:37:28Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-05-21T04:15:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8ade009c952b2977508d6d88aacc290c645125d2'/>
<id>urn:sha1:8ade009c952b2977508d6d88aacc290c645125d2</id>
<content type='text'>
Not only does this save us having to implement a custom
callback, but it handles "--no-reference" in the usual way
(to clear the list).

The generic callback does copy the string, which we don't
technically need, but that should not hurt anything.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>clone: call transport_set_verbosity before anything else on the newly created transport</title>
<updated>2015-05-19T16:05:55Z</updated>
<author>
<name>Mike Hommey</name>
<email>mh@glandium.org</email>
</author>
<published>2015-05-12T04:30:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=822f0c4ff716ed356fb56cf39a5b0900313e40fb'/>
<id>urn:sha1:822f0c4ff716ed356fb56cf39a5b0900313e40fb</id>
<content type='text'>
Commit 2879bc3 made the progress and verbosity options sent to remote helper
earlier than they previously were. But nothing else after that would send
updates if the value is changed later on with transport_set_verbosity.

While for fetch and push, transport_set_verbosity is the first thing that
is done after creating the transport, it was not the case for clone. So
commit 2879bc3 broke changing progress and verbosity for clone, for urls
requiring a remote helper only (so, not git:// urls, for instance).

Moving transport_set_verbosity to just after the transport is created
works around the issue.

Signed-off-by: Mike Hommey &lt;mh@glandium.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/cleanup-failed-clone' into maint</title>
<updated>2015-03-28T16:33:09Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-28T16:33:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=73d8bfde32acae522b305f7742350d392e3f4e86'/>
<id>urn:sha1:73d8bfde32acae522b305f7742350d392e3f4e86</id>
<content type='text'>
An failure early in the "git clone" that started creating the
working tree and repository could have resulted in some directories
and files left without getting cleaned up.

* jk/cleanup-failed-clone:
  clone: drop period from end of die_errno message
  clone: initialize atexit cleanup handler earlier
</content>
</entry>
<entry>
<title>Merge branch 'jk/cleanup-failed-clone'</title>
<updated>2015-03-25T19:54:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-25T19:54:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=927936d75391a81250543c928fed620a2af98464'/>
<id>urn:sha1:927936d75391a81250543c928fed620a2af98464</id>
<content type='text'>
An failure early in the "git clone" that started creating the
working tree and repository could have resulted in some directories
and files left without getting cleaned up.

* jk/cleanup-failed-clone:
  clone: drop period from end of die_errno message
  clone: initialize atexit cleanup handler earlier
</content>
</entry>
<entry>
<title>clone: drop period from end of die_errno message</title>
<updated>2015-03-19T20:38:36Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-03-18T19:02:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=16eff6c009c0af430975d44c0af98262f1edb549'/>
<id>urn:sha1:16eff6c009c0af430975d44c0af98262f1edb549</id>
<content type='text'>
We do not usually end our errors with a full stop, but it
looks especially bad when you use die_errno, which adds a
colon, like:

  fatal: could not create work tree dir 'foo'.: No such file or directory

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>clone: initialize atexit cleanup handler earlier</title>
<updated>2015-03-19T20:38:07Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-03-18T18:55:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ee0e38727f1a67ddd3b8b7f6ecea34624b2a8b51'/>
<id>urn:sha1:ee0e38727f1a67ddd3b8b7f6ecea34624b2a8b51</id>
<content type='text'>
If clone fails, we generally try to clean up any directories
we've created. We do this by installing an atexit handler,
so that we don't have to manually trigger cleanup. However,
since we install this after touching the filesystem, any
errors between our initial mkdir() and our atexit() call
will result in us leaving a crufty directory around.

We can fix this by moving our atexit() call earlier. It's OK
to do it before the junk_work_tree variable is set, because
remove_junk makes sure the variable is initialized. This
means we "activate" the handler by assigning to the
junk_work_tree variable, which we now bump down to just
after we call mkdir(). We probably do not want to do it
before, because a plausible reason for mkdir() to fail is
EEXIST (i.e., we are racing with another "git init"), and we
would not want to remove their work.

OTOH, this is probably not that big a deal; we will allow
cloning into an empty directory (and skip the mkdir), which
is already racy (i.e., one clone may see the other's empty
dir and start writing into it). Still, it does not hurt to
err on the side of caution here.

Note that writing into junk_work_tree and junk_git_dir after
installing the handler is also technically racy, as we call
our handler on an async signal.  Depending on the platform,
we could see a sheared write to the variables. Traditionally
we have not worried about this, and indeed we already do
this later in the function. If we want to address that, it
can come as a separate topic.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>standardize usage info string format</title>
<updated>2015-01-14T17:32:04Z</updated>
<author>
<name>Alex Henrie</name>
<email>alexhenrie24@gmail.com</email>
</author>
<published>2015-01-13T07:44:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9c9b4f2f8b7f27f3984e80d053106d5d41cbb03b'/>
<id>urn:sha1:9c9b4f2f8b7f27f3984e80d053106d5d41cbb03b</id>
<content type='text'>
This patch puts the usage info strings that were not already in docopt-
like format into docopt-like format, which will be a litle easier for
end users and a lot easier for translators. Changes include:

- Placing angle brackets around fill-in-the-blank parameters
- Putting dashes in multiword parameter names
- Adding spaces to [-f|--foobar] to make [-f | --foobar]
- Replacing &lt;foobar&gt;* with [&lt;foobar&gt;...]

Signed-off-by: Alex Henrie &lt;alexhenrie24@gmail.com&gt;
Reviewed-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
