Comment Comment by yosh git ls-remote will help you to get the hash of HEAD. It's much cheaper than doing a zero-depth clone. parent yosh 16 years ago