Fetch should not fail when remote HEAD reference is not present locally
Merge pull request #1586 from jamill/fetch_fix

Fetch should not fail when remote HEAD reference is not present locally
calloc() to initialize memory