Merge pull request #3981 from bk2204/mawk-compatibility

t-duplicate-oids: use correct awk indexing
This commit is contained in:
brian m. carlson 2020-01-15 15:13:15 +00:00 committed by GitHub
commit bc355b19e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,7 +19,7 @@ begin_test "multiple revs with same OID get pushed once"
# Stash the contents of the file that we want to commit in .git/lfs/objects.
object_dir="$(echo $contents_oid \
| awk '{ print substr($0, 0, 2) "/" substr($0, 3, 2) }')"
| awk '{ print substr($0, 1, 2) "/" substr($0, 3, 2) }')"
mkdir -p ".git/lfs/objects/$object_dir"
printf "%s" "$contents" > ".git/lfs/objects/$object_dir/$contents_oid"