Although rereading your comments I'm not sure you understood what I meant...
This:

```c#
var gitsrc = (new Uri(sourceControlWarmupLocation)).IsFile
                 ? Path.Combine(sourceControlWarmupLocation, templateName)
                 : NewUri(sourceControlWarmupLocation, templateName).AbsoluteUri;
```

Should be like this:

```c#
var gitsrc = (new Uri(sourceControlWarmupLocation)).IsFile ? Path.Combine(sourceControlWarmupLocation, templateName) : NewUri(sourceControlWarmupLocation, templateName).AbsoluteUri;
```