git://git.onelab.eu
/
infrastructure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
turn off f24 build
[infrastructure.git]
/
scripts
/
git-mirror.sh
diff --git
a/scripts/git-mirror.sh
b/scripts/git-mirror.sh
index
8761ac1
..
3f05125
100755
(executable)
--- a/
scripts/git-mirror.sh
+++ b/
scripts/git-mirror.sh
@@
-145,7
+145,10
@@
function mirror_repo () {
MASTER_REPO=${MASTER_GIT}/${GIT_NAME}
# if the local master is a symlink (like /git/vserver-reference.git -> sliceref.git)
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
+ # then skip it
+ # we use this for either aliases (like vserver-reference and sliceimage) or
+ # for repos managed in other locations (like /git-slave) but where
+ # the symlink is needed so they get served by git-daemon
[ -h ${MASTER_REPO} ] && return
# if there is no remote repository it may be that we only have
[ -h ${MASTER_REPO} ] && return
# if there is no remote repository it may be that we only have
@@
-210,7
+213,7
@@
function usage () {
exit 1
}
exit 1
}
-while getopts "a:r:qvfh" opt; do
+while getopts "a:r:
s:
qvfh" opt; do
case $opt in
a) ADMINS=$OPTARG ;;
r) REMOTE_GIT=$OPTARG ;;
case $opt in
a) ADMINS=$OPTARG ;;
r) REMOTE_GIT=$OPTARG ;;