[libvirt] [PATCH] fix generation of .git-submodule-status

Paolo Bonzini pbonzini at redhat.com
Tue Jul 14 14:51:55 UTC 2009


When the .gnulib submodule is not initialized, "git submodule status"
will prepend a dash in front of the submodule's SHA1.  Currently,
autogen.sh will then write the dashed SHA1 to its control file
.git-submodule-status.

This patch fixes the problem; the solution is to...

* autogen.sh: Reinvoke git submodule status after bootstrap has
initialized the submodule.
---
 autogen.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 415f3ec..c824a06 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -62,7 +62,7 @@ if test "$t" = "$(cat $curr_status 2>/dev/null)"; then
     : # good, it's up to date
 else
   echo running bootstrap...
-  ./bootstrap && echo "$t" > $curr_status
+  ./bootstrap && git submodule status > $curr_status
 fi
 
 # Automake requires that ChangeLog exist.
-- 
1.6.2.5




More information about the libvir-list mailing list