Fix update for non-default URLs

While gitblit uses urlencoded repo and filenames, other things (such as
the local filesystem paths used in WMF's setup) want non-encoded paths.

So update I28a053fa to allow for both options.

Bug: 49521
Change-Id: I22613d2ebcff86d6e6c5f106baf01c790f413f80