Shallow clones of local directories require file:// as explained at: git clone: warning: --depth is ignored in local clones; use file:// instead
file://
But how
You should try without the file:// prefix:
git clone --depth 1 ./mymodule mymodule2