trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: February 2012

Re: [trinity-devel] GIT repository download problems

From: Keith Daniels <keithwdaniels@...>
Date: Wed, 29 Feb 2012 13:54:31 -0500
David C. Rankin

Where is the./scripts/switch_submodules_to_head_and_clean script--that
I can customize for my personal use--located?  The only copy of this
script that I have found so far is part of the download itself.

I assumed that the script resides in the repository and that my script
calls it from the repository location.

Keith

On Wed, Feb 29, 2012 at 9:04 AM, David C. Rankin
<drankinatty@...> wrote:
> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: trinity-devel-unsubscribe@...
> For additional commands, e-mail: trinity-devel-help@...
> Read list messages on the web archive: http://trinity-devel.pearsoncomputing.net/
> Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
>