REMOTE_REPO=${REMOTE_GIT}/${GIT_NAME}
MASTER_REPO=${MASTER_GIT}/${GIT_NAME}
+ # if the local master is a symlink (like /git/vserver-reference.git -> sliceref.git)
+ # then skip it, the target itself will be handled if in scope
+ [ -h ${MASTER_REPO} ] && return
+
# if there is no remote repository it may be that we only have
# the repository locally and don't need to mirror
git ls-remote $REMOTE_REPO &> /dev/null || return