mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-19 11:42:43 +00:00
git count-objects
This commit is contained in:
parent
bac12aead8
commit
513ff49b3f
@ -10,6 +10,7 @@ function update_repo_git() {
|
|||||||
echo "==== SYNC repo.git START ===="
|
echo "==== SYNC repo.git START ===="
|
||||||
/usr/bin/timeout -s INT 3600 git remote -v update
|
/usr/bin/timeout -s INT 3600 git remote -v update
|
||||||
git repack -a -b -d
|
git repack -a -b -d
|
||||||
|
git count-objects -v -H
|
||||||
echo "==== SYNC repo.git DONE ===="
|
echo "==== SYNC repo.git DONE ===="
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
|
@ -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
|
|
1
linux.sh
1
linux.sh
@ -10,6 +10,7 @@ function update_linux_git() {
|
|||||||
echo "==== SYNC $UPSTREAM START ===="
|
echo "==== SYNC $UPSTREAM START ===="
|
||||||
/usr/bin/timeout -s INT 3600 git remote -v update
|
/usr/bin/timeout -s INT 3600 git remote -v update
|
||||||
git repack -a -b -d
|
git repack -a -b -d
|
||||||
|
git count-objects -v -H
|
||||||
echo "==== SYNC $UPSTREAM DONE ===="
|
echo "==== SYNC $UPSTREAM DONE ===="
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user