完成git下载目录

This commit is contained in:
2025-08-31 11:45:21 +08:00
parent 12a3457fe9
commit 9854a00542
3 changed files with 145 additions and 2 deletions

View File

@@ -301,9 +301,9 @@ class RemoteCommandsTab(QWidget):
# 构建克隆命令
if remote_dir:
# 如果指定了远程目录,先创建目录(如果不存在),然后克隆到指定目录
clone_command = f"mkdir -p {remote_dir} && cd {remote_dir} && git clone {repo_url}"
clone_command = f"mkdir -p {remote_dir} && cd {remote_dir} && git clone --verbose {repo_url}"
else:
clone_command = f"git clone {repo_url}"
clone_command = f"git clone --verbose {repo_url}"
# 创建并启动线程执行命令
self.command_thread = RemoteCommandThread(self.ssh_client, clone_command)