[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 23dd0b6 3/5: Work around RHEL-7 mustiness
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 23dd0b6 3/5: Work around RHEL-7 mustiness |
Date: |
Wed, 19 Aug 2020 10:33:29 -0400 (EDT) |
branch: master
commit 23dd0b6fa296ebf569b7b3ff4ff1c3269c9327af
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Work around RHEL-7 mustiness
---
lmi_setup_25.sh | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/lmi_setup_25.sh b/lmi_setup_25.sh
index 549dfc6..72f1153 100755
--- a/lmi_setup_25.sh
+++ b/lmi_setup_25.sh
@@ -62,5 +62,14 @@ git config --global user.email gchicares@sbcglobal.net
git config --global user.name "Gregory W. Chicares"
fi
+# Avoid "fatal: Invalid cleanup mode scissors" with ancient git.
+# This is just a temporary workaround that can be deleted once RHEL
+# catches up to git-2.x, so nothing more elaborate is warranted.
+case "$(git --version)" in
+ ("git version 1*")
+ git config --global --unset commit.cleanup
+ ;;
+esac
+
stamp=$(date -u +'%Y%m%dT%H%M%SZ')
echo "$stamp $0: Configured {zsh,vim,git} for user '$(whoami)'." | tee
/dev/tty