Need to have uploadpack.allowReachableSHA1InWant=true
set on the server.
$ git init
Reinitialised existing Git repository in /home/nicolaw/foo/.git/
$ git remote add origin http://github.com/TrinityCore/TrinityCore.git
$ git fetch --depth 1 origin fd7f48545ce76740065860c0963194c2a9e3e0e2
warning: redirecting to https://github.com/TrinityCore/TrinityCore.git/
remote: Enumerating objects: 14978, done.
remote: Counting objects: 100% (14978/14978), done.
remote: Compressing objects: 100% (12880/12880), done.
remote: Total 14978 (delta 2430), reused 12384 (delta 1988), pack-reused 0
Receiving objects: 100% (14978/14978), 69.50 MiB | 6.32 MiB/s, done.
Resolving deltas: 100% (2430/2430), done.
From http://github.com/TrinityCore/TrinityCore
* branch fd7f48545ce76740065860c0963194c2a9e3e0e2 -> FETCH_HEAD
$ git checkout fd7f48545ce76740065860c0963194c2a9e3e0e2 -- sql/*
$ du -sh .git *
72M .git
286M sql