pgit.sh: Deprecate CentOS 7

CentOS 7's Git doesn\'t understand -C, consider that obsolete and don't
cd into a directory any longer.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-11-20 16:15:26 +01:00
commit c37f2aaca3

View file

@ -46,15 +46,6 @@ config()
run_git() run_git()
{ {
marker git "$@" marker git "$@"
# sadly, CentOS 7 has git 1.8.3.1, which doesn't support -C
if [ "$1" = -C ]; then
(
cd $2
shift 2
git "$@"
)
return $?
fi
git "$@" git "$@"
} }