X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=clone;h=fa51e9fa4fb532371a055197d72e1d5b4554efa7;hb=1ea61da74423202f5aa551935ac82ed5fed9e573;hp=94932f216c27317c0dde51aa3deaea0d4b32fe82;hpb=7182410184d8d13645d053bf51cde3b08ad29bb9;p=git-scripts.git diff --git a/clone b/clone index 94932f2..fa51e9f 100755 --- a/clone +++ b/clone @@ -16,12 +16,12 @@ if [ -d .git ]; then git remote set-url origin "$origin" else git clone -o origin "$origin" "$local_repo" && - cd "$local_repo" + cd "$local_repo" && + chmod a-x .git/config fi && +"`dirname \"$0\"`"/set-commit-date-recursive && pwd >> "`dirname \"$0\"`"/locate-all.list && - -chmod a-x .git/config && branch="`git rev-parse --abbrev-ref HEAD`" git config push.default current &&