git count-objects

This commit is contained in:
z4yx 2020-03-20 13:34:25 +08:00
parent bac12aead8
commit 513ff49b3f
4 changed files with 2 additions and 42 deletions

View File

@ -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 ===="
}

View File

@ -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

View File

@ -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

View File

@ -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 ===="
}