shlib.sh: is_git_dir: tolerate symref without space
commit81600bd0e12c5fe04db7d5654a227499fcc8749e
authorKyle J. McKay <mackyle@gmail.com>
Thu, 25 Aug 2016 06:05:51 +0000 (24 23:05 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 25 Aug 2016 06:05:51 +0000 (24 23:05 -0700)
treeee2a470970bd8888c4ca5ac5210baf640c050de4
parentf004b4b5a4f94032664ec66f9eb55cd58d0994ec
shlib.sh: is_git_dir: tolerate symref without space

A Git symbolic ref normally has the form:

  ref:<space>refs/...

However, Git tolerates any amount of white space where <space>
occurs in the pattern above, including none.

Therefore tolerate no whitespace in the is_git_dir test as well.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
shlib.sh