On Sun, Sep 10, 2017 at 2:12 PM, Lars Schneider
[off-list ref] wrote:
quoted
On 03 Aug 2017, at 10:18, Christian Couder [off-list ref] wrote:
To properly test passing objects from Git to an external odb
we need an odb-helper script that supports a 'put'
capability/instruction.
For now we will support only sending raw blobs, so the
supported capability/instruction will be 'put_raw_obj'.
What other kind of blobs do you imagine could we send?
As for the get instructions there could be 'put_git_obj' to send blobs
in the Git format and 'put_direct' to have the helper read directly
from the Git object store.
quoted
+put_raw_obj)
+ sha1="$2"
+ size="$3"
+ kind="$4"
+ writen=$(git hash-object -w -t "$kind" --stdin)
+ test "$writen" = "$sha1" || die "bad sha1 passed '$sha1' vs writen '$writen'"
Typo? Should it be "written"?
Yeah, thanks. It's fixed in the current version.