Fix gitfs regression for tag-based envs

**Note: This is against 2014.1. Regression does not exist in develop.**

Resolves #10956.