Browse Source

[New] Clean up git reflog history before git gc

Peter Dave Hello 8 years ago committed by Jordan Harband
parent
commit
248706d5f8
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
  1. 3
      install.sh

3
install.sh

@ -125,6 +125,9 @@ install_nvm_from_git() { @@ -125,6 +125,9 @@ install_nvm_from_git() {
fi
echo "=> Compressing and cleaning up git repository"
if ! command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" reflog expire --expire=now --all; then
echo >&2 "Your version of git is out of date. Please update it!"
fi
if ! command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" gc --auto --aggressive --prune=now ; then
echo >&2 "Your version of git is out of date. Please update it!"
fi

Loading…
Cancel
Save