Skip to content

get_deps fails on fresh clone for some of the repos --> "fatal: ambiguous argument 'HEAD'" #3102

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

Closed
1 task done
ehughes opened this issue Apr 27, 2025 · 1 comment
Closed
1 task done
Labels

Comments

@ehughes
Copy link
Contributor

ehughes commented Apr 27, 2025

Operating System

Linux

Board

Affects Local Development and the CI

Firmware

Happens with b5d4d0f but I think this has more to do with the dependency repos and how "HEAD" is handled.

What happened ?

I was preparing to do work on the nxp/mcx bsps to add more boards and noticed some of the dependencies could not be fetched on a fresh clone

I have a patch here:

#3100

That enables builds to work again, but there still may be need to be some additional logic.

C:\ELI\tinyusb_dev\tinyusb-dev\tools> .\get_deps.py mcx
cloning lib/FreeRTOS-Kernel with https://github.com/FreeRTOS/FreeRTOS-Kernel.git
cloning tools/uf2 with https://github.com/microsoft/uf2.git
cloning hw/mcu/nxp/mcux-sdk with https://github.com/hathach/mcux-sdk.git
cloning lib/lwip with https://github.com/lwip-tcpip/lwip.git
cloning lib/CMSIS_5 with https://github.com/ARM-software/CMSIS_5.git

Command Error: git -C C:\ELI\tinyusb_dev\tinyusb-dev\hw\mcu\nxp\mcux-sdk rev-parse HEAD
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD

Command Error: git -C C:\ELI\tinyusb_dev\tinyusb-dev\tools\uf2 rev-parse HEAD
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD
Command Error: git -C C:\ELI\tinyusb_dev\tinyusb-dev\lib\FreeRTOS-Kernel rev-parse HEAD
Command Error: git -C C:\ELI\tinyusb_dev\tinyusb-dev\lib\lwip rev-parse HEAD

Command Error: git -C C:\ELI\tinyusb_dev\tinyusb-dev\lib\CMSIS_5 rev-parse HEAD
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD

How to reproduce ?

1.) clone tinyusb

2.) run get_deps.py lpc55 mcx

3.) Observe failure

This also occurs in the ci

Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)

n/a

this is a build system issue

Screenshots

n/a

I have checked existing issues, dicussion and documentation

  • I confirm I have checked existing issues, dicussion and documentation.
@hathach
Copy link
Owner

hathach commented Apr 28, 2025

closed by #3100

@hathach hathach closed this as completed Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants