fetch2/git: Ensure check is made in the correct directory

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>