<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/http-push.c, branch v1.6.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.6.2</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.6.2'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2009-02-15T09:43:57Z</updated>
<entry>
<title>Merge branch 'rc/http-push'</title>
<updated>2009-02-15T09:43:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-02-15T09:43:57Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=c42b04bbb0cdf7618d3bdb57ed02569a5f128fe9'/>
<id>urn:sha1:c42b04bbb0cdf7618d3bdb57ed02569a5f128fe9</id>
<content type='text'>
* rc/http-push:
  use a hash of the lock token as the suffix for PUT/MOVE
</content>
</entry>
<entry>
<title>use a hash of the lock token as the suffix for PUT/MOVE</title>
<updated>2009-02-15T08:57:43Z</updated>
<author>
<name>Tay Ray Chuan</name>
<email>rctay89@gmail.com</email>
</author>
<published>2009-02-14T09:52:14Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=dfab7c144eb2f02fc1481173422ecc416a060155'/>
<id>urn:sha1:dfab7c144eb2f02fc1481173422ecc416a060155</id>
<content type='text'>
After 753bc91 ("Remove the requirement opaquelocktoken uri scheme"),
lock tokens are in the URI forms in which they are received from the
server, eg. 'opaquelocktoken:', 'urn:uuid:'.

However, "start_put" (and consequently "start_move"), which attempts to
create a unique temporary file using the UUID of the lock token,
inadvertently uses the lock token in its URI form. These file
operations on the server may not be successful (specifically, in
Windows), due to the colon ':' character from the URI form of the lock
token in the file path.

This patch uses a hash of the lock token instead, guaranteeing only
"safe" characters (a-f, 0-9) are used in the file path.

The token's hash is generated when the lock token is received from the
server in handle_new_lock_ctx, minimizing the number of times of
hashing.

Signed-off-by: Tay Ray Chuan &lt;rctay89@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rc/http-push'</title>
<updated>2009-02-06T03:40:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-02-06T03:40:36Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=7aa4e736b295c8784a70645e79dd80a7a80c6147'/>
<id>urn:sha1:7aa4e736b295c8784a70645e79dd80a7a80c6147</id>
<content type='text'>
* rc/http-push:
  http-push: wrap signature of get_remote_object_url
  http-push: add back underscore separator before lock token
  http-push.c: get_remote_object_url() is only used under USE_CURL_MULTI
  http-push: refactor request url creation
</content>
</entry>
<entry>
<title>http-push: wrap signature of get_remote_object_url</title>
<updated>2009-02-04T06:51:48Z</updated>
<author>
<name>Tay Ray Chuan</name>
<email>rctay89@gmail.com</email>
</author>
<published>2009-02-03T12:39:00Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=2d20b7ebf672c28b18da4558d96f100613e4e4ca'/>
<id>urn:sha1:2d20b7ebf672c28b18da4558d96f100613e4e4ca</id>
<content type='text'>
The signature of get_remote_object_url stands at 96 characters (as
pointed out by Dscho); this patch wraps it so that it conforms to the
80 characters guideline.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http-push: add back underscore separator before lock token</title>
<updated>2009-02-04T06:16:24Z</updated>
<author>
<name>Tay Ray Chuan</name>
<email>rctay89@gmail.com</email>
</author>
<published>2009-02-03T13:07:26Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=223bd9317643f8ccef3447583944e58c13c10db9'/>
<id>urn:sha1:223bd9317643f8ccef3447583944e58c13c10db9</id>
<content type='text'>
817d14a (http-push: refactor request url creation, 2009-01-31) removed the
underscore separator between the object path and the appended lock token.

This patch adds it back.

This would be keeping in line with the aforementioned patch's objective
of refactoring, without changing the behaviour and effect, of the code.

This would also be useful for testing if the lock token has been
indeed appended to the object url.

Signed-off-by: Tay Ray Chuan &lt;rctay89@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http-push.c: get_remote_object_url() is only used under USE_CURL_MULTI</title>
<updated>2009-02-03T06:44:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-02-03T06:24:40Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=dcdb3335c13c018cbc75b49c170080817c123834'/>
<id>urn:sha1:dcdb3335c13c018cbc75b49c170080817c123834</id>
<content type='text'>
Otherwise -Wunused-function (which is implied by -Wall) triggers.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'sp/runtime-prefix'</title>
<updated>2009-02-01T01:43:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-02-01T01:43:59Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=ed096c4a23476810831e12d2e9227403c21bd774'/>
<id>urn:sha1:ed096c4a23476810831e12d2e9227403c21bd774</id>
<content type='text'>
* sp/runtime-prefix:
  Windows: Revert to default paths and convert them by RUNTIME_PREFIX
  Compute prefix at runtime if RUNTIME_PREFIX is set
  Modify setup_path() to only add git_exec_path() to PATH
  Add calls to git_extract_argv0_path() in programs that call git_config_*
  git_extract_argv0_path(): Move check for valid argv0 from caller to callee
  Refactor git_set_argv0_path() to git_extract_argv0_path()
  Move computation of absolute paths from Makefile to runtime (in preparation for RUNTIME_PREFIX)
</content>
</entry>
<entry>
<title>Merge branch 'jk/signal-cleanup'</title>
<updated>2009-02-01T01:43:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-02-01T01:43:56Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=fa5bc8abb35e34f673c41cb5c66d0a2f21536861'/>
<id>urn:sha1:fa5bc8abb35e34f673c41cb5c66d0a2f21536861</id>
<content type='text'>
* jk/signal-cleanup:
  t0005: use SIGTERM for sigchain test
  pager: do wait_for_pager on signal death
  refactor signal handling for cleanup functions
  chain kill signals for cleanup functions
  diff: refactor tempfile cleanup handling
  Windows: Fix signal numbers
</content>
</entry>
<entry>
<title>http-push: refactor request url creation</title>
<updated>2009-02-01T01:10:07Z</updated>
<author>
<name>Tay Ray Chuan</name>
<email>rctay89@gmail.com</email>
</author>
<published>2009-01-30T23:51:55Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=817d14a87a90481b60a1c28f79f7d838d985a45c'/>
<id>urn:sha1:817d14a87a90481b60a1c28f79f7d838d985a45c</id>
<content type='text'>
Introduce two helper functions append_remote_object_url() and
get_remote_object_url() and use them to remove various places
that allocate and format the URL by hand.  These functions generate
a URL that point at the fan-out directory inside the remote object
store (e.g. http://host/path/to/repo/objects/a1/) or at an individual
loose object file.

Signed-off-by: Tay Ray Chuan &lt;rctay89@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add calls to git_extract_argv0_path() in programs that call git_config_*</title>
<updated>2009-01-26T08:26:05Z</updated>
<author>
<name>Steffen Prohaska</name>
<email>prohaska@zib.de</email>
</author>
<published>2009-01-18T12:00:12Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=2fb3f6db96492b680899f9e40f434eeb4c778a84'/>
<id>urn:sha1:2fb3f6db96492b680899f9e40f434eeb4c778a84</id>
<content type='text'>
Programs that use git_config need to find the global configuration.
When runtime prefix computation is enabled, this requires that
git_extract_argv0_path() is called early in the program's main().

This commit adds the necessary calls.

Signed-off-by: Steffen Prohaska &lt;prohaska@zib.de&gt;
Acked-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
