fix fetch behavior for new Git version