From 513ff49b3f8fb7a0157d1c591299972b6ed39c3f Mon Sep 17 00:00:00 2001 From: z4yx Date: Fri, 20 Mar 2020 13:34:25 +0800 Subject: [PATCH] git count-objects --- git-repo.sh | 1 + linux-next.sh | 21 --------------------- linux-stable.sh | 21 --------------------- linux.sh | 1 + 4 files changed, 2 insertions(+), 42 deletions(-) delete mode 100755 linux-next.sh delete mode 100755 linux-stable.sh diff --git a/git-repo.sh b/git-repo.sh index 82fdec4..8f7e7f9 100755 --- a/git-repo.sh +++ b/git-repo.sh @@ -10,6 +10,7 @@ function update_repo_git() { echo "==== SYNC repo.git START ====" /usr/bin/timeout -s INT 3600 git remote -v update git repack -a -b -d + git count-objects -v -H echo "==== SYNC repo.git DONE ====" } diff --git a/linux-next.sh b/linux-next.sh deleted file mode 100755 index ce99ccd..0000000 --- a/linux-next.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -UPSTREAM=${TUNASYNC_UPSTREAM_URL:-"git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git"} - -function repo_init() { - git clone --mirror $UPSTREAM $TUNASYNC_WORKING_DIR -} - -function update_linux_git() { - cd $TUNASYNC_WORKING_DIR - echo "==== SYNC linux-next.git START ====" - /usr/bin/timeout -s INT 3600 git remote -v update - git repack -a -b -d - echo "==== SYNC linux-next.git DONE ====" -} - -if [[ ! -f "$TUNASYNC_WORKING_DIR/HEAD" ]]; then - echo "Initializing linux-next.git mirror" - repo_init -fi - -update_linux_git diff --git a/linux-stable.sh b/linux-stable.sh deleted file mode 100755 index 9ac4916..0000000 --- a/linux-stable.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -UPSTREAM=${TUNASYNC_UPSTREAM_URL:-"git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git"} - -function repo_init() { - git clone --mirror $UPSTREAM $TUNASYNC_WORKING_DIR -} - -function update_linux_git() { - cd $TUNASYNC_WORKING_DIR - echo "==== SYNC linux.git START ====" - /usr/bin/timeout -s INT 3600 git remote -v update - git repack -a -b -d - echo "==== SYNC linux.git DONE ====" -} - -if [[ ! -f "$TUNASYNC_WORKING_DIR/HEAD" ]]; then - echo "Initializing Linux.git mirror" - repo_init -fi - -update_linux_git diff --git a/linux.sh b/linux.sh index 8351f5a..8a36952 100755 --- a/linux.sh +++ b/linux.sh @@ -10,6 +10,7 @@ function update_linux_git() { echo "==== SYNC $UPSTREAM START ====" /usr/bin/timeout -s INT 3600 git remote -v update git repack -a -b -d + git count-objects -v -H echo "==== SYNC $UPSTREAM DONE ====" }