From a7213b5a67cf24e3ffe9cf9215a1227f2f664db7 Mon Sep 17 00:00:00 2001 From: Srgr0 <66754887+Srgr0@users.noreply.github.com> Date: Sat, 10 Feb 2024 00:56:10 +0900 Subject: [PATCH] support commit hash --- misskey-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misskey-install.sh b/misskey-install.sh index 3f10dcc..bdf3b44 100755 --- a/misskey-install.sh +++ b/misskey-install.sh @@ -920,7 +920,8 @@ function install() { function git_clone() { echo ""; tput setaf 3; echo "Process: clone git repository;"; tput setaf 7; - sudo -iu "$misskey_user" git clone -b "$git_branch" --depth 1 --recursive "$git_repository" "$misskey_directory"; + sudo -iu "$misskey_user" git clone --no-single-branch --recursive "$git_repository" "$misskey_directory"; + sudo -iu "$misskey_user" git -C "$misskey_directory" checkout "$git_branch"; } #Create misskey config file