[PATCH] [Kimchi] Use always flag as a fallback

Since new repositories don't have tags in their git history yet, git-describe was failing. This fix uses always flag to return the hash of latest commit as a fallback to version number. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 250dc83..1c5af68 100644 --- a/Makefile.am +++ b/Makefile.am @@ -157,7 +157,7 @@ uninstall-local: VERSION: @if test -d .git; then \ - git describe --abbrev=0 > $@; \ + git describe --abbrev=0 --always > $@; \ fi .PHONY: deb install-deb rpm fedora-rpm suse-rpm ChangeLog VERSION -- 1.9.1

The same I commented int the Wok patch. On 14/12/2015 16:02, Lucio Correia wrote:
Since new repositories don't have tags in their git history yet, git-describe was failing. This fix uses always flag to return the hash of latest commit as a fallback to version number.
Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am index 250dc83..1c5af68 100644 --- a/Makefile.am +++ b/Makefile.am @@ -157,7 +157,7 @@ uninstall-local:
VERSION: @if test -d .git; then \ - git describe --abbrev=0 > $@; \ + git describe --abbrev=0 --always > $@; \ fi
.PHONY: deb install-deb rpm fedora-rpm suse-rpm ChangeLog VERSION
participants (2)
-
Aline Manera
-
Lucio Correia