Skip to content

Commit

Permalink
autogen.sh: Enforce https URLs
Browse files Browse the repository at this point in the history
Before initialising submodules recursive, init them non-recursively, and
enforce https URLs in the rabbitmq-c/codegen submodule. This is a
temporary workaround for an internal issue.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
  • Loading branch information
algernon committed Jul 19, 2013
1 parent a826bcf commit 069a172
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions autogen.sh
Expand Up @@ -19,6 +19,11 @@ autogen_submodules()

if [ -n "$GIT" ] && [ -f .gitmodules ] && [ -d .git ] && [ $submod_initialized = 0 ]; then
# only clone submodules if none of them present
git submodule update --init
sed -e "s#git://#https://#" \
< modules/afamqp/rabbitmq-c/.gitmodules \
> modules/afamqp/rabbitmq-c/.gitmodules.new && \
mv modules/afamqp/rabbitmq-c/.gitmodules.new modules/afamqp/rabbitmq-c/.gitmodules
git submodule update --init --recursive
fi

Expand Down

0 comments on commit 069a172

Please sign in to comment.