trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: February 2012

Re: [trinity-devel] GIT repository download problems

From: Darrell Anderson <humanreadable@...>
Date: Wed, 29 Feb 2012 11:18:08 -0800 (PST)
> I made a start up script like this:
> 
> GIT_TREE_ROOT="/home/keith/builds/slackware/trinity"
> GIT_TREE="zz_src_trinity_git"
> cd $GIT_TREE_ROOT
> git clone --recursive http://scm.trinitydesktop.org/scm/git/tde $GIT_TREE
> /bin/bash ./scripts/switch_all_submodules_to_head_and_clean anonymous
> 
> and still had the password problem (with and without the
> /bin/bash being used)

First do this from the command line:

export GIT_TREE_ROOT="/home/keith/builds/slackware/trinity"
export GIT_TREE="zz_src_trinity_git"
mkdir -p $GIT_TREE_ROOT/$GIT_TREE
cd $GIT_TREE_ROOT
git clone --recursive http://scm.trinitydesktop.org/scm/git/tde $GIT_TREE

Then modify your script like this:

GIT_TREE_ROOT="/home/keith/builds/slackware/trinity"
GIT_TREE="zz_src_trinity_git"
if [ -d $GIT_TREE_ROOT/$GIT_TREE ]; then
  cd $GIT_TREE_ROOT/$GIT_TREE
  sh ./scripts/switch_all_submodules_to_head_and_clean anonymous
else
  mkdir -p $GIT_TREE_ROOT/$GIT_TREE
  cd $GIT_TREE_ROOT
  git clone --recursive http://scm.trinitydesktop.org/scm/git/tde $GIT_TREE
fi

Darrell