1
0
Fork 0
mirror of synced 2024-12-04 06:35:36 -05:00
This commit is contained in:
cwarlich 2024-11-14 08:43:07 +01:00 committed by GitHub
commit 5ef271870e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

10
yadm
View file

@ -795,6 +795,7 @@ function clone() {
DO_BOOTSTRAP=1
local -a args
local -i do_checkout=1
local -i do_submodules=0
while [[ $# -gt 0 ]] ; do
case "$1" in
--bootstrap) # force bootstrap, without prompt
@ -809,7 +810,10 @@ function clone() {
-n|--no-checkout)
do_checkout=0
;;
--bare|--mirror|--recurse-submodules*|--recursive|--separate-git-dir=*)
--recursive)
do_submodules=1
;;
--bare|--mirror|--recurse-submodules*|--separate-git-dir=*)
# ignore arguments without separate parameter
;;
--separate-git-dir)
@ -876,6 +880,10 @@ function clone() {
"$GIT_PROGRAM" checkout -- ":/$file"
done
if [[ $do_submodules -ne 0 ]]; then
"$GIT_PROGRAM" submodule update --init --recursive
fi
if [ -n "$("$GIT_PROGRAM" ls-files --modified)" ]; then
local msg
IFS='' read -r -d '' msg <<EOF