mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
only update submodule when it is not on a specific branch
This commit is contained in:
parent
08fb55c2e1
commit
93b83333aa
1 changed files with 14 additions and 1 deletions
15
autogen.sh
15
autogen.sh
|
@ -11,7 +11,20 @@ then
|
|||
echo "+ Setting up common submodule"
|
||||
git submodule init
|
||||
fi
|
||||
git submodule update
|
||||
|
||||
# only update if the submodule is tracking master at some version,
|
||||
# which means there is no branch name
|
||||
cd common
|
||||
branch=`git branch | grep ^* | cut -c 3-`
|
||||
cd ..
|
||||
|
||||
if test "x$branch" == "x(no branch)"
|
||||
then
|
||||
echo "+ Updating common submodule"
|
||||
git submodule update common
|
||||
else
|
||||
echo "+ Not updating common submodule on branch $branch"
|
||||
fi
|
||||
|
||||
# source helper functions
|
||||
if test ! -f common/gst-autogen.sh;
|
||||
|
|
Loading…
Reference in a new issue