Hacker News new | ask | show | jobs
by yosh 5697 days ago
git ls-remote will help you to get the hash of HEAD. It's much cheaper than doing a zero-depth clone.