git-wad

Manage files via git but not their content
git clone git://git.meso-star.fr/git-wad.git
Log | Files | Refs | README | LICENSE

commit d1c136e4b09803562fa08704d46a1d71473ce6cf
parent d8813ed141b6e7e4e7ead7ee11b4d4230dce619f
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Sun, 10 Dec 2023 19:24:14 +0100

Fix git smudge filter

Silence WAD header reading and correct the way digest and WAD object
size are retrieved.

Diffstat:
Mgit-wad | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/git-wad b/git-wad @@ -145,7 +145,7 @@ clean() # stdin smudge() # stdin { header_size="$(sizeof_header)" - header="$(dd ibs=1 count="${header_size}")" + header="$(dd ibs=1 count="${header_size}" 2> /dev/null)" if [ "${header}" != "${GIT_WAD_HEADER}" ]; then # It is not a WAD log "git-wad:filter-smudge: not a managed file" @@ -154,7 +154,7 @@ smudge() # stdin else # It is a WAD # The sed directive remove the space before the digest - digest_size="$(cat - | sed "1s/^ //d")" + digest_size="$(cat - | sed "1s/^ //")" digest="$(echo "${digest_size}" | cut -d' ' -f1)" size="$(echo "${digest_size}" | cut -d' ' -f2)"