The deployment script now uses the current revision of the set branch in this case. Does not work together with a custom value of $CONFIG_HASH_LENGTH though.
The repository is now only fetched for each deployment, which makes the whole process much faster especially for large repositories and repositories with many submodules.