Fix fetching for bare repos

Bare repos do not use tracking branches, so a different invocation of
"fetch" needs to be used.

Added testing to validate pulling into bare repos.