hashes: be tolerant of longer hash values
commit6429b1b152586fff32fd812fb756fbc10b891327
authorKyle J. McKay <mackyle@gmail.com>
Wed, 13 Dec 2017 00:48:37 +0000 (12 16:48 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 13 Dec 2017 00:48:37 +0000 (12 16:48 -0800)
tree68427b50df0c971262f78ec95d1b3bdb2a6ca681
parentaace95e56cf84b7613b5dbb8a857812f3bf2b077
hashes: be tolerant of longer hash values

Currently all hash values are 40 hex digits when not abbreviated.

That will probably not always be the case.

When using hash values, tolerate longer hashes, but not shorter
ones.  The shell matching for this is not exact so things other
than hex digits may appear after the first 40 hex digits.

The regular expression matching, however, requires all hex digits.

Currently loose object sharding continues to match only with exactly
two hex digits for the shard name.  That may possibly need to bu
adjusted in the future.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
hooks/pre-receive
jobd/combine-packs.sh
jobd/gc.sh
jobd/update.sh
shlib.sh
taskd/clone.sh
toolbox/perform-pre-gc-linking.sh