pgit.sh: Set http.proactiveAuth=basic

For git clone, use and persist the http.proactiveAuth=basic config
option, because it's needed for janware.com servers.

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

View file

@ -154,7 +154,8 @@ clone()
if [ -d $p ]; then if [ -d $p ]; then
run_git -C $p pull --recurse-submodules=on-demand run_git -C $p pull --recurse-submodules=on-demand
else else
run_git clone $remote_base/$fromuser$remote_subpath/$p run_git -c http.proactiveAuth=basic clone $remote_base/$fromuser$remote_subpath/$p
run_git -C $p config set http.proactiveAuth basic
fi fi
else else
local remotename="jw-$fromuser" local remotename="jw-$fromuser"
@ -174,7 +175,8 @@ clone()
fi fi
else else
# set -x # set -x
run_git clone $remote_base/$fromuser$remote_subpath/$p run_git -c http.proactiveAuth=basic clone $remote_base/$fromuser$remote_subpath/$p
run_git -C $p config set http.proactiveAuth basic
run_git -C $p remote rename origin $remotename || fatal failed to rename remote in $p run_git -C $p remote rename origin $remotename || fatal failed to rename remote in $p
run_git -C $p remote set-url --push $remotename no_push run_git -C $p remote set-url --push $remotename no_push
if [ $create_remote_user_repos = true ]; then if [ $create_remote_user_repos = true ]; then