Git clone should ignore depth when using http transport.

Add failing test for issue #1028

Fixes #1028