Skip to content

fix pkgs --update error #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fix pkgs --update error #259

wants to merge 2 commits into from

Conversation

dongly
Copy link

@dongly dongly commented Jun 22, 2025

  • 测试环境

    • windows 10 专业版 22H2 19045.5965
    • windows powershell 5.1.19041.5965
    • git version 2.49.0.windows.1
    • Python 3.13.5
  • 修复前
    pkgs --update 出错

Cloning into 'D:\Develop\rt-thread\master\bsp\stm32\stm32f407-rt-spark\packages\stm32f4_cmsis_driver-latest'...
remote: Enumerating objects: 603, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 603 (delta 4), reused 0 (delta 0), pack-reused 593 (from 1)
Receiving objects: 100% (603/603), 1.19 MiB | 573.00 KiB/s, done.
Resolving deltas: 100% (516/516), done.
error: unknown option `depth'
usage: git remote set-branches <name> <branch>...
   or: git remote set-branches --add <name> <branch>...

    --[no-]add            add branch


==============================> b'STM32F4_CMSIS_DRIVER' b'latest' update done
  • 修复后
Cloning into 'C:\Develop\rt-thread\master\bsp\stm32\stm32f407-rt-spark\packages\stm32f4_cmsis_driver-latest'...
remote: Enumerating objects: 603, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (10/10), done.
Rremote: Total 603 (delta 4), reused 0 (delta 0), pack-reused 593 (from 1)
Receiving objects: 100% (603/603), 1.19 MiB | 613.00 KiB/s, done.
Resolving deltas: 100% (516/516), done.
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
From https://gitee.com/RT-Thread-Mirror/stm32f4_cmsis_driver
 * branch            master     -> FETCH_HEAD
==============================>  STM32F4_CMSIS_DRIVER latest is downloaded successfully. 
  • 处理
    • 原来的命令行是组合运行的,出错了。
    • 现将命令行拆分后正常

@BernardXiong
Copy link
Member

在什么环境下会出错?似乎这块还没出过这样的错误

@dongly
Copy link
Author

dongly commented Jun 26, 2025

windows 10 专业版 22H2 19045.5965

Name Value


PSVersion 5.1.19041.5965
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.5965
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

git version 2.49.0.windows.1

Python 3.13.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants