validate: Always git submodule update from the toplevel directory
authorThibault Saunier <tsaunier@gnome.org>
Tue, 12 May 2015 07:55:58 +0000 (09:55 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Tue, 12 May 2015 07:55:58 +0000 (09:55 +0200)
Otherwise it fails with older git versions

validate/autogen.sh

index 18ed914..fbd44a4 100755 (executable)
@@ -18,14 +18,14 @@ package=gst-validate
 srcfile=gst-validate.doap
 
 # Make sure we have common
-if test ! -f common/gst-autogen.sh;
+cd ../
+if test ! -f validate/common/gst-autogen.sh;
 then
   echo "+ Setting up common submodule"
-  cd ../
   git submodule init
-  cd validate/
 fi
 git submodule update
+cd validate/
 
 # source helper functions
 if test ! -f common/gst-autogen.sh;