From c7c3a831adb47558ab183a20b1b02a500dba6246 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 28 Mar 2012 12:02:07 +0200 Subject: [PATCH] support for module renaming - git-mirror skips symlinks --- scripts/git-mirror.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/git-mirror.sh b/scripts/git-mirror.sh index b959804..a1f3e15 100755 --- a/scripts/git-mirror.sh +++ b/scripts/git-mirror.sh @@ -144,6 +144,10 @@ function mirror_repo () { 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 -- 2.47.0