From c6c55cb6c3c0224418e0142381e3bd64c6c5b76d Mon Sep 17 00:00:00 2001 From: Przemo Firszt Date: Fri, 27 Jul 2018 17:56:03 +0100 Subject: [PATCH] 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 --- package/fedora/rpkg.macros | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package/fedora/rpkg.macros b/package/fedora/rpkg.macros index f6641d9eed..bf2e606a0d 100644 --- a/package/fedora/rpkg.macros +++ b/package/fedora/rpkg.macros @@ -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 }