From 9ebe7c74ac30be02531eceb676353094a138c886 Mon Sep 17 00:00:00 2001 From: "prgrmz01@163.com" Date: Wed, 25 Jan 2023 22:00:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8D=89=E7=A8=BFreplace=5Fgitmodules=5Furl.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git_template | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/git_template b/git_template index 749ead9..9230952 100644 --- a/git_template +++ b/git_template @@ -10,3 +10,15 @@ new_args=`cat /tmp/_args.new` echo "pwd:`pwd`; $new_args" >> /tmp/git.log /usr/bin/git.original $new_args + + +#git clone https://github.com/frida/libpsl.git +#IFS=' ' read -r -a new_arg_array <<< "-c advice.detachedHead=false clone --depth 1 --branch main https://github.com/frida/glib.git glib" +#echo "${new_arg_array[-1]}" +#glib + +IFS=' ' read -r -a new_arg_array <<< "$new_args" +git_dir_name="${new_arg_array[-1]}" +git_dir="`pwd`/$git_dir_name" +gitmodules_path=${git_dir}/.gitmodules +test -f ${gitmodules_path} && python /pubx/git-replace/replace_gitmodules_url.py ${gitmodules_path} -- GitLab