<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git, branch v2.6.7</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=v2.6.7</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=v2.6.7'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2017-05-05T03:56:19Z</updated>
<entry>
<title>Git 2.6.7</title>
<updated>2017-05-05T03:56:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-05-05T03:56:19Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=70fcaef90bad282cf141a7c2e7ae87b13fe0700e'/>
<id>urn:sha1:70fcaef90bad282cf141a7c2e7ae87b13fe0700e</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint-2.5' into maint-2.6</title>
<updated>2017-05-05T03:52:26Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-05-05T03:52:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=ab37a18b60b4f061de8239256589faeaab630ff8'/>
<id>urn:sha1:ab37a18b60b4f061de8239256589faeaab630ff8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Git 2.5.6</title>
<updated>2017-05-05T03:50:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-05-05T03:49:00Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=ac33201285cce4b392c3cedfaf7f098fdb1dde87'/>
<id>urn:sha1:ac33201285cce4b392c3cedfaf7f098fdb1dde87</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint-2.4' into maint-2.5</title>
<updated>2017-05-05T03:46:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-05-05T03:46:53Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=531788af951cbaf5356363f66c54594b555bdde3'/>
<id>urn:sha1:531788af951cbaf5356363f66c54594b555bdde3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Git 2.4.12</title>
<updated>2017-05-05T03:43:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-05-05T03:25:09Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=4000b4020911512eea10667dd5c97a0b4890e098'/>
<id>urn:sha1:4000b4020911512eea10667dd5c97a0b4890e098</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/shell-no-repository-that-begins-with-dash' into maint-2.4</title>
<updated>2017-05-05T03:17:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-05-05T03:17:55Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=5a4ffdf5873bc15af39a59eef4766cc4240ed586'/>
<id>urn:sha1:5a4ffdf5873bc15af39a59eef4766cc4240ed586</id>
<content type='text'>
* jk/shell-no-repository-that-begins-with-dash:
  shell: disallow repo names beginning with dash
</content>
</entry>
<entry>
<title>shell: disallow repo names beginning with dash</title>
<updated>2017-05-05T03:07:27Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2017-04-29T12:36:44Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=3ec804490a265f4c418a321428c12f3f18b7eff5'/>
<id>urn:sha1:3ec804490a265f4c418a321428c12f3f18b7eff5</id>
<content type='text'>
When a remote server uses git-shell, the client side will
connect to it like:

  ssh server "git-upload-pack 'foo.git'"

and we literally exec ("git-upload-pack", "foo.git"). In
early versions of upload-pack and receive-pack, we took a
repository argument and nothing else. But over time they
learned to accept dashed options. If the user passes a
repository name that starts with a dash, the results are
confusing at best (we complain of a bogus option instead of
a non-existent repository) and malicious at worst (the user
can start an interactive pager via "--help").

We could pass "--" to the sub-process to make sure the
user's argument is interpreted as a branch name. I.e.:

  git-upload-pack -- -foo.git

But adding "--" automatically would make us inconsistent
with a normal shell (i.e., when git-shell is not in use),
where "-foo.git" would still be an error. For that case, the
client would have to specify the "--", but they can't do so
reliably, as existing versions of git-shell do not allow
more than a single argument.

The simplest thing is to simply disallow "-" at the start of
the repo name argument. This hasn't worked either with or
without git-shell since version 1.0.0, and nobody has
complained.

Note that this patch just applies to do_generic_cmd(), which
runs upload-pack, receive-pack, and upload-archive. There
are two other types of commands that git-shell runs:

  - do_cvs_cmd(), but this already restricts the argument to
    be the literal string "server"

  - admin-provided commands in the git-shell-commands
    directory. We'll pass along arbitrary arguments there,
    so these commands could have similar problems. But these
    commands might actually understand dashed arguments, so
    we cannot just block them here. It's up to the writer of
    the commands to make sure they are safe. With great
    power comes great responsibility.

Reported-by: Timo Schmid &lt;tschmid@ernw.de&gt;
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>Git 2.6.6</title>
<updated>2016-03-17T18:26:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-03-17T17:56:06Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=e46579643d56162299b1756b70d418005351b256'/>
<id>urn:sha1:e46579643d56162299b1756b70d418005351b256</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint-2.5' into maint-2.6</title>
<updated>2016-03-17T18:26:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-03-17T18:26:18Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=ce4d4e763c054788550625502553ced8810a7bce'/>
<id>urn:sha1:ce4d4e763c054788550625502553ced8810a7bce</id>
<content type='text'>
* maint-2.5:
  Git 2.5.5
  Git 2.4.11
  list-objects: pass full pathname to callbacks
  list-objects: drop name_path entirely
  list-objects: convert name_path to a strbuf
  show_object_with_name: simplify by using path_name()
  http-push: stop using name_path
  tree-diff: catch integer overflow in combine_diff_path allocation
  add helpers for detecting size_t overflow
</content>
</entry>
<entry>
<title>Git 2.5.5</title>
<updated>2016-03-17T18:24:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-03-17T17:28:50Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=e568e563ade00bbb0937162f405fc160f253e224'/>
<id>urn:sha1:e568e563ade00bbb0937162f405fc160f253e224</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
