Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] fix CI warnings issued by "git describe" (sonic-net#13098)
./functions.sh script contains twice the command "git describe --tags". Azure pipelines currently retrieves the repository content by using a "git clone" or "git fetch" command with the option "--depth". When the depth is not enough sized to reach a tag in the "git log" history, "git describe --tags" generates on stderr the warning: "fatal: No names found, cannot describe anything." https://stackoverflow.com/questions/4916492/git-describe-fails-with-fatal-no-names-found-cannot-describe-anything During the build process, the functions.sh script is a lot consumed and this pointless warning appears in CI thousand lines w/o any added value. This situation can be easily avoided by redirecting related commands stderr output to /dev/null. Signed-off-by: Guillaume Lambert <[email protected]>
- Loading branch information