summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Gnatenko <ignatenko@redhat.com>2016-09-10 18:15:42 +0200
committerGitHub <noreply@github.com>2016-09-10 18:15:42 +0200
commitd480b572fcf658c97a80716454d2cc17c3ba695d (patch)
tree6821b991d65146dbcf6fe509aa4b7cdfd15b0a36
parent932f14fdf8dc0ef0a911e5af7eae4ecddfa759c4 (diff)
downloadrpm-d480b572fcf658c97a80716454d2cc17c3ba695d.tar.gz
Makefile.maint: use git-rev-listignatenkobrain-patch-1
No need to query all commits and count lines of output, we can just ask git to provide information directly.
-rw-r--r--Makefile.maint2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.maint b/Makefile.maint
index 69ca9252b..f84154c9e 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -1,7 +1,7 @@
include Makefile
snapshot: ChangeLog
- @$(MAKE) dist VERSION=$(VERSION)-git`git log --pretty=oneline|wc -l`
+ @$(MAKE) dist VERSION=$(VERSION)-git`git rev-list --count HEAD`
release: ChangeLog dist