trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: February 2012

Re: [trinity-devel] GIT repository download problems

From: "David C. Rankin" <drankinatty@...>
Date: Wed, 29 Feb 2012 08:04:31 -0600
On 02/29/2012 12:50 AM, Timothy Pearson wrote:
>> On Wed, Feb 29, 2012 at 00:40, Keith Daniels <keithwdaniels@...>
>> wrote:
>>> I'm trying to download the git files as an anonymous user.
>>>
>>> When it starts downloading, everything goes fine for the first 43 megs
>>> and 50 files. Â All the files are put in the correct place in my build
>>> tree--but  then it stops downloading and displays:
>>>
>>> -----------------
>>> Cloning into experimental...
>>> Password:
>>> -----------------
>> snipped.
>>
>> .gitmodules has a system@ appended to the user. What I do is sed it
>> out so that nothing's there.
>> (check out the scripts folder in the tde git repository - the one named
>> 'tde')
>>
> 
> Alternatively you could use the
> ./scripts/switch_submodules_to_head_and_clean script; it will do this task
> for you...
> 
> Tim

Since you are using a newer version of GIT, you will want the --recursive option
added to the ./scripts/switch_submodules_to_head_and_clean script. (replace
'drankin@' with your user or delete it completely) I use:

git reset --hard HEAD
git clean -dxf
git pull
git reset --hard HEAD
git clean -dxf
sed -i "s/system@/drankin@/g" .gitmodules
git submodule init
git submodule update --recursive
git submodule foreach --recursive "git checkout master"
git submodule foreach --recursive "git pull"
git checkout -- .gitmodules


-- 
David C. Rankin, J.D.,P.E.