cirosantilli / test-many-commits-1m

Repository with two million commits (~215 MiB local size, 30s generation time). Generated efficiently with Python + git fast-import: https://github.com/cirosantilli/test-git-web-interface/blob/37e5c34111c4791d0ec06ce32d7d7843b648b66d/other-test-repos/many-commits-fast-import.py
https://www.quora.com/Which-GitHub-repo-has-the-most-commits/answer/Ciro-Santilli
74 stars 22 forks source link

7 char short commit id that appears in two commits #1

Open cirosantilli opened 6 years ago

cirosantilli commented 6 years ago

cf83c95 <- not unique

9717201 <- unique

Nice, GH just bails out on the non unique one, locally git 2.17 sasy:

error: short SHA1 cf83c95 is ambiguous
hint: The candidates are:
hint:   cf83c956c3 commit 2000-01-01 - 300280
hint:   cf83c95928 commit 2000-01-01 - 874183
fatal: ambiguous argument 'cf83c95': unknown revision or path not in the working tree.

http://web.archive.org/web/20180531175519/https://github.com/cirosantilli/test-many-commits-1m/issues/1

Found with:

git log --format="%h" | cut -c-7 | sort | uniq -c