diff options
-rwxr-xr-x | modules/gitmirror/templates/rsync-metadata.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/gitmirror/templates/rsync-metadata.sh b/modules/gitmirror/templates/rsync-metadata.sh index 7176cc54..fe3b8bef 100755 --- a/modules/gitmirror/templates/rsync-metadata.sh +++ b/modules/gitmirror/templates/rsync-metadata.sh @@ -9,10 +9,8 @@ if [ ! -d "$GITROOT/$REPO" ]; then exit 1 fi -cp -af "$GITROOT/$REPO/config" "$GITROOT/$REPO/config.orig" -/usr/bin/rsync -a --delete --include="description" --include="config" --include="info" --include="info/web" --include="info/web/last-modified" --exclude="*" "$RSYNCROOT/$REPO/" "$GITROOT/$REPO/" -cp -af "$GITROOT/$REPO/config" "$GITROOT/$REPO/config.upstream" -mv -f "$GITROOT/$REPO/config.orig" "$GITROOT/$REPO/config" +/usr/bin/rsync -a --include="description" --include="info" --include="info/web" --include="info/web/last-modified" --exclude="*" "$RSYNCROOT/$REPO/" "$GITROOT/$REPO/" +/usr/bin/rsync -a "$RSYNCROOT/$REPO/config" "$GITROOT/$REPO/config.upstream" OWNER=$(git config --file "$GITROOT/$REPO/config.upstream" gitweb.owner) DESC=$(git config --file "$GITROOT/$REPO/config.upstream" gitweb.description) |