702 fix git clone

Shall fix #702.

I'll be adding some tests, which should help that this does not happen again.
Also cf2426e contains a fix which should ensure, that the controller always produces a response
which is valid.