Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-doc
Commits
37112b2d
Commit
37112b2d
authored
Mar 01, 2010
by
florent
Browse files
Check that alias git-laas is defined and fail with error message otherwise
* bootstrap: copy roboptim scheme.
parent
5e73c9b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
bootstrap
View file @
37112b2d
...
...
@@ -23,6 +23,21 @@ die_noroboptimalias ()
die
"no
\`\`
roboptim:'' alias in your git configuration."
}
# Properly explain how to set up a scripts working directory and exit.
die_nogitlaasmalias
()
{
echo
>
&2
"To properly finish setting up your working directory,"
echo
>
&2
"you need to define how submodule
\"
scripts
\"
should should be"
echo
>
&2
"downloaded."
echo
>
&2
""
echo
>
&2
"If you only need read-access (which is usually what one wants):"
echo
>
&2
"echo '[url
\"
git://[softs|git].laas.fr/git
\"
]"
echo
>
&2
" insteadOf = git-laas:' >> ~/.gitconfig"
echo
>
&2
""
die
"no
\`\`
git-laas:'' alias in your git configuration."
}
# Check that git version is newer enough.
check_git_version
()
{
...
...
@@ -54,6 +69,10 @@ if test -d ".git"; then
die_noroboptimalias
fi
if
test
x
`
git config
-l
|
grep
'url\..*\.insteadof=git-laas:'
`
=
x
;
then
die_nogitlaasmalias
fi
git submodule init
git submodule update
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment