<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/remote.c, branch v2.13.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.13.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.13.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-06-13T20:27:06Z</updated>
<entry>
<title>Merge branch 'jk/drop-free-refspecs' into maint</title>
<updated>2017-06-13T20:27:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-13T20:27:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9451a7b629478790ad621d41b3f12ab8aa9097cc'/>
<id>urn:sha1:9451a7b629478790ad621d41b3f12ab8aa9097cc</id>
<content type='text'>
Code clean-up.

* jk/drop-free-refspecs:
  remote: drop free_refspecs() function
</content>
</entry>
<entry>
<title>Merge branch 'js/bs-is-a-dir-sep-on-windows' into maint</title>
<updated>2017-06-05T00:03:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-05T00:03:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e6f80aee299f530c9565b520aa76e6ff2e5649bc'/>
<id>urn:sha1:e6f80aee299f530c9565b520aa76e6ff2e5649bc</id>
<content type='text'>
"foo\bar\baz" in "git fetch foo\bar\baz", even though there is no
slashes in it, cannot be a nickname for a remote on Windows, as
that is likely to be a pathname on a local filesystem.

* js/bs-is-a-dir-sep-on-windows:
  Windows: do not treat a path with backslashes as a remote's nick name
  mingw.h: permit arguments with side effects for is_dir_sep
</content>
</entry>
<entry>
<title>remote: drop free_refspecs() function</title>
<updated>2017-06-01T00:59:00Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2017-05-31T04:27:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a56eea28c45a8f76e4167c4e6baa87e89b7be3bc'/>
<id>urn:sha1:a56eea28c45a8f76e4167c4e6baa87e89b7be3bc</id>
<content type='text'>
We already have free_refspec(), a public function which does
the same thing as the static free_refspecs(). Let's just
keep one.  There are two minor differences between the
functions:

  1. free_refspecs() is a noop when the refspec argument is
     NULL. This probably doesn't matter in practice.  The
     nr_refspec parameter would presumably be 0 in that
     case, skipping the loop. And free(NULL) is explicitly
     OK. But it doesn't hurt for us to port this extra
     safety to free_refspec(), as one of the callers passes
     a funny "i+1" count.

  2. The order of arguments is reversed between the two
     functions. This patch uses the already-public order of
     free_refspec(), as it matches the argument order on the
     parsing side.

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>Windows: do not treat a path with backslashes as a remote's nick name</title>
<updated>2017-05-25T23:05:32Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2017-05-25T12:00:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d9244ecf4f109030e61b8fd52a799789133e2199'/>
<id>urn:sha1:d9244ecf4f109030e61b8fd52a799789133e2199</id>
<content type='text'>
On Windows, the remote repository name in, e.g., `git fetch foo\bar`
is clearly not a nickname for a configured remote repository. However,
the function valid_remote_nick() does not account for backslashes.
Use is_dir_sep() to check for both slashes and backslashes on Windows.

This was discovered while playing with Duy's patches that warn after
fopen() failures. The functions that read the branches and remotes
files are protected by a valid_remote_nick() check. Without this
change, a Windows style absolute path is incorrectly regarded as
nickname and is concatenated to a prefix and used with fopen(). This
triggers warnings because a colon in a path name is not allowed:

C:\Temp\gittest&gt;git fetch C:\Temp\gittest
warning: unable to access '.git/remotes/C:\Temp\gittest': Invalid argument
warning: unable to access '.git/branches/C:\Temp\gittest': Invalid argument
From C:\Temp\gittest
 * branch            HEAD       -&gt; FETCH_HEAD

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>remote: plug memory leak in match_explicit()</title>
<updated>2017-05-08T03:18:20Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2017-05-04T13:59:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3dc7ea91dab9959b6bec82c05df18d6d1bb70619'/>
<id>urn:sha1:3dc7ea91dab9959b6bec82c05df18d6d1bb70619</id>
<content type='text'>
The `guess_ref()` returns an allocated buffer of which `make_linked_ref()`
does not take custody (`alloc_ref()` makes a copy), therefore we need to
release the buffer afterwards.

Noticed via Coverity.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'bw/push-options-recursively-to-submodules'</title>
<updated>2017-04-20T04:37:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-04-20T04:37:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=872e2cf00a570e9d83e40343579a7bb092307d53'/>
<id>urn:sha1:872e2cf00a570e9d83e40343579a7bb092307d53</id>
<content type='text'>
"git push --recurse-submodules --push-option=&lt;string&gt;" learned to
propagate the push option recursively down to pushes in submodules.

* bw/push-options-recursively-to-submodules:
  push: propagate remote and refspec with --recurse-submodules
  submodule--helper: add push-check subcommand
  remote: expose parse_push_refspec function
  push: propagate push-options with --recurse-submodules
  push: unmark a local variable as static
</content>
</entry>
<entry>
<title>Merge branch 'jc/unused-symbols'</title>
<updated>2017-04-17T06:29:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-04-17T06:29:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=93a96cced3ff4181bde02b1688c15d5de03db7be'/>
<id>urn:sha1:93a96cced3ff4181bde02b1688c15d5de03db7be</id>
<content type='text'>
Code cleanup.

* jc/unused-symbols:
  remote.[ch]: parse_push_cas_option() can be static
</content>
</entry>
<entry>
<title>remote: expose parse_push_refspec function</title>
<updated>2017-04-11T07:45:22Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-04-05T17:47:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c19ae47a7940428f8f3f1c49ecdb8906f03c43fa'/>
<id>urn:sha1:c19ae47a7940428f8f3f1c49ecdb8906f03c43fa</id>
<content type='text'>
A future patch needs access to the 'parse_push_refspec()' function so
let's export the function so other modules can use it.

Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>remote.[ch]: parse_push_cas_option() can be static</title>
<updated>2017-03-31T20:20:48Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-03-31T20:20:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8668976b53446847dfb363887738899a708f15a0'/>
<id>urn:sha1:8668976b53446847dfb363887738899a708f15a0</id>
<content type='text'>
Since 068c77a5 ("builtin/send-pack.c: use parse_options API",
2015-08-19), there is no external user of this helper function.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jn/remote-helpers-with-git-dir'</title>
<updated>2017-02-27T21:57:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-02-27T21:57:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ace83dc26a13ada8f6b2c011b01fc0ae9e48b86f'/>
<id>urn:sha1:ace83dc26a13ada8f6b2c011b01fc0ae9e48b86f</id>
<content type='text'>
"git ls-remote" and "git archive --remote" are designed to work
without being in a directory under Git's control.  However, recent
updates revealed that we randomly look into a directory called
.git/ without actually doing necessary set-up when working in a
repository.  Stop doing so.

* jn/remote-helpers-with-git-dir:
  remote helpers: avoid blind fall-back to ".git" when setting GIT_DIR
  remote: avoid reading $GIT_DIR config in non-repo
</content>
</entry>
</feed>
