Ensure we only reset for real -current repo

This commit is contained in:
JK Wood 2018-09-01 14:43:54 -05:00
parent 8efdf1a6dd
commit a1757faf22

View File

@ -2459,9 +2459,11 @@ git_command() {
CWD=$(pwd)
# If -CURRENT, handle correctly
if [[ $REPO_NAME == "SBo-git" ]]; then
if [[ $REPO_BRANCH == "current" ]]; then
current_check_updates
fi
fi
# Create the repository if needed
if [[ ! -d $REPO_DIR/.git ]]; then
mkdir -p $REPO_DIR