Skip to content

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

Closed
@ehughes

Description

@ehughes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions