Strip query strings from resource paths before checking w/ git

Some Git versions don't play nicely with paths that contain query strings.
In particular, query strings that contain unescaped '/' characters.
A common thing to do in webpack land is use the webpack-dev-server client
library by including an entry point that is like "webpack-dev-server/client?http://localhost:9000"
that informs the client library where your server is located. The slashes
in that host would mess up the git process.