[gimp/metadata-browser] Bug 659084 - git-version.h can't be generated from shallow repositories



commit c695628ffbe362254fbc3e9fa33e55d16b984832
Author: Martin Nordholts <martinn src gnome org>
Date:   Thu Sep 15 06:45:03 2011 +0200

    Bug 659084 - git-version.h can't be generated from shallow repositories
    
    Pass --always to git describe so git-version.h can be generated also
    from shallow (--depth 1) repositories. Cause found by Kenny Stuart.

 NEWS            |    2 +-
 app/Makefile.am |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/NEWS b/NEWS
index 22306f1..85c2e52 100644
--- a/NEWS
+++ b/NEWS
@@ -40,7 +40,7 @@ Developer documentation:
 
 Source and build system:
 
- - <item>
+ - Make git-version.h generation work in shallow git clones
 
 
 General:
diff --git a/app/Makefile.am b/app/Makefile.am
index fe00891..92167a8 100644
--- a/app/Makefile.am
+++ b/app/Makefile.am
@@ -273,7 +273,7 @@ dist-hook: dist-check-gimp-console dist-dump-gimprc
 # in which case the git-version.h we ship is correct.
 git-version.h: update-git-version-header
 	@if test -d "$(top_srcdir)/.git"; then \
-	  git_version="`git --git-dir=$(top_srcdir)/.git describe`"; \
+	  git_version="`git --git-dir=$(top_srcdir)/.git describe --always`"; \
 	  git_last_commit_timestamp="`git --git-dir=$(top_srcdir)/.git log -n1 --reverse --pretty=%ct`"; \
 	  git_last_commit_year="`date --utc -d \"1970-01-01 + $$git_last_commit_timestamp seconds\" '+%Y'`"; \
 	elif test ! -f "$@"; then \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]