Change method of counting commits

The count of commits in unshallowed copy should always match the actual
number of commits in the master repository, so the is no need for
workarounds.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt
2018-07-27 17:56:03 +01:00
committed by wmayer
parent 9d419b8a40
commit c6c55cb6c3

View File

@@ -1,5 +1,4 @@
function git_commits_no {
commits_since_0_16=$(git rev-list master 0.16 --count)
total_commits=$((11532 + $commits_since_0_16))
echo $total_commits
commits=$(git fetch --unshallow && git rev-list master --count)
echo $commits
}