Files
create/package/fedora/rpkg.macros
Przemo Firszt c6c55cb6c3 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>
2018-07-28 15:25:35 +02:00

5 lines
108 B
Plaintext

function git_commits_no {
commits=$(git fetch --unshallow && git rev-list master --count)
echo $commits
}