mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 09:39:10 -04:00
In our docker docs[1] we recommend to start docker as a non-root user. This has a side effect, because the esp-idf repo in docker image is owned by root. Git by default refuses even to parse a config file if the repo is owned by other than current user. As a result the version detection in cmake fails[2] and the app version is set to "HEAD-HASH-NOTFOUND". This adds esp-idf repo to the system git config as a safe one. [1] https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/ tools/idf-docker-image.html#building-a-project-with-cmake [2] https://github.com/espressif/esp-idf/issues/12389#issuecomment-1764268773 Closes https://github.com/espressif/esp-idf/issues/12389 Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>