diff options
Diffstat (limited to 'share/hydra/init')
-rwxr-xr-x | share/hydra/init | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/share/hydra/init b/share/hydra/init index 9979f9f..2920af4 100755 --- a/share/hydra/init +++ b/share/hydra/init @@ -52,6 +52,8 @@ if [ ! -z "$REMOTE" ]; then if [ -e '.gitmodules' ] && grep -q \"config\" .gitmodules; then git submodule update --init $repo else + REMOTE="`echo $REMOTE | sed -e 's|/$||'`" + if git ls-remote ${REMOTE}/$repo &> /dev/null; then git clone ${REMOTE}/$repo `basename $repo .git` else |