Skip to content

Commit

Permalink
update inc/updater_submenu.inc
Browse files Browse the repository at this point in the history
optimize git disk usage
  • Loading branch information
centminmod committed Feb 9, 2016
1 parent 67515f4 commit 5365a61
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions inc/updater_submenu.inc
Expand Up @@ -211,6 +211,12 @@ if [[ -d "${SCRIPT_DIR}/.git" ]]; then
cd /usr/local/src/centminmod 2>/dev/null
git stash
git pull
# git reflog expire --all --expire=now
echo
git count-objects -v
git gc --prune=now --aggressive
echo
git count-objects -v
chmod +x centmin.sh
re_sourcefiles

Expand Down Expand Up @@ -268,6 +274,11 @@ if [[ -d "${SCRIPT_DIR}/.git" ]]; then
git clone ${CMGIT} centminmod
cd centminmod 2>/dev/null
git checkout -f ${branchname}
echo
git count-objects -v
git gc --prune=now --aggressive
echo
git count-objects -v
chmod +x centmin.sh
re_sourcefiles

Expand Down

0 comments on commit 5365a61

Please sign in to comment.