Message: previous - next
Month: December 2011

Re: [trinity-users] git usage

From: "Timothy Pearson" <kb9vqf@...>
Date: Mon, 5 Dec 2011 14:20:18 -0600
> I'm trying to "pull" the git directory as an anonymous user with:
>   ./scripts/switch_all_submodules_to_head_and_clean
> For each submodule, it ask me for a password, three times
> (submodule + admin + cmake).
> That means doing "Enter" 378 times...
> Is there a way to bypass this procedure?

This is one of GIT's more irritating limitations.  What I ended up doing
was creating a bash script "gitpass" in my home directory like this:

echo "<mypassword>"

For anonymous usage "<mypassword>" can be replaced with "".

Mark the script executable (chmod +x ~/gitpass), then export the
GIT_ASKPASS variable in the terminal you will be pulling the sources in
like this:

export GIT_ASKPASS=~/gitpass

Then run the ./scripts/switch_all_submodules_to_head_and_clean script from
that terminal, and GIT shouldn't bug you for a password.

I might be able to incorporate something like the above into the checkout
script, but for now this manual procedure should get you going.