Detecting pushes originating from shallow clones?

2015-11-30 Thread Owen Jacobson
Hi folks, Here at Heroku, we ingest code from users by supplying them with a Git server they can `git push` into. Occasionally, users will attempt to push to us from a shallow clone, which causes numerous problems for us and, often, for our users (incomplete repositories, gaps in history, faile

Re: Detecting pushes originating from shallow clones?

2015-11-30 Thread Owen Jacobson
Owen Jacobson wrote: > Within the constraints that > > * we cannot control which version of Git our users have installed, and > * we run Git v1.9.1, obtained from the Ubuntu 14.04 LTS .deb repositories > > what can we do in an update/pre-receive hook to detect that