trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: February 2012

Re: [trinity-devel] git clone - not cloning contents of submodules (cmake, admin, ...)

From: Darrell Anderson <humanreadable@...>
Date: Thu, 16 Feb 2012 10:50:32 -0800 (PST)
>   I don't know if this is the
> git config for tde or me that is causing the git
> clone of the tde tree to fail to clone the needed admin,
> cmake and other
> submodules when doing a clone of the entire project.

I run a simple shell script to update my local GIT tree. Although originally I manually first created the local tree with the clone option, I wrote my script to perform that same function as well, just in case something awful happened at this end and I needed to start from scratch.

==============================================================
GIT_TREE_ROOT="/home/public/builds/slackware/trinity"
GIT_TREE="zz_src_trinity_git"
echo "Updating the Trinity GIT tree..."
CWD=$(pwd)
if [ -d $GIT_TREE_ROOT/$GIT_TREE ]; then
  echo "Changing directory to $GIT_TREE_ROOT/$GIT_TREE."
  cd $GIT_TREE_ROOT/$GIT_TREE
  sh ./scripts/switch_all_submodules_to_head_and_clean anonymous
else
  mkdir -p $GIT_TREE
  cd $GIT_TREE_ROOT
  git clone http://scm.trinitydesktop.org/scm/git/tde $GIT_TREE
fi
==============================================================

Darrell