We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab591b0 commit 248706dCopy full SHA for 248706d
install.sh
@@ -125,6 +125,9 @@ install_nvm_from_git() {
125
fi
126
127
echo "=> Compressing and cleaning up git repository"
128
+ if ! command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" reflog expire --expire=now --all; then
129
+ echo >&2 "Your version of git is out of date. Please update it!"
130
+ fi
131
if ! command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" gc --auto --aggressive --prune=now ; then
132
echo >&2 "Your version of git is out of date. Please update it!"
133
0 commit comments