allow specifying other commit IDs than the current repo HEAD, and auto-refresh VCS data if commit not found