Add helpful buffer shorten function
Make refspec_transform paranoid about arguments
Merge pull request #1692 from arrbee/fix-1692

Segmentation fault on git_clone