attr: push the bare repo check into read_attr()
authorBrandon Williams <redacted>
Sat, 28 Jan 2017 02:02:06 +0000 (18:02 -0800)
committerJunio C Hamano <redacted>
Wed, 1 Feb 2017 21:46:53 +0000 (13:46 -0800)
commit0787dafdccfb09b26501293f72db74638c3834ad
tree1032760a7d1d47b90330ff24d92567e3eee1f46d
parentdc81cf377cd25193a9cf044767917e4f5553c285
attr: push the bare repo check into read_attr()

Push the bare repository check into the 'read_attr()' function.  This
avoids needing to have extra logic which creates an empty stack frame
when inside a bare repo as a similar bit of logic already exists in the
'read_attr()' function.

Signed-off-by: Brandon Williams <redacted>
Signed-off-by: Junio C Hamano <redacted>
attr.c
git clone https://git.99rst.org/PROJECT