Skip to content
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

Datadog-ci git-upload [unshallow] Failed to unshallow: Error: fatal: Server does not support --shallow-since #1517

Open
pedrooct opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working source-code-integration Related to [git-metadata]

Comments

@pedrooct
Copy link

pedrooct commented Jan 7, 2025

Bug description

Hi everyone!

When I try to run datadog-ci to upload git information I have the error presented below:

git version 2.47.0

Option --git-sync is deprecated as it is now the default behavior
Uploading list of tracked files...
Reporting commit *** from repository https://dev.azure.com/***
99 tracked file paths will be reported.
Successfully uploaded tracked files in 0.396 seconds.
Syncing GitDB...
[unshallow] Git repository is a shallow clone, unshallowing it...
[unshallow] Running git fetch --shallow-since="1 month ago" --update-shallow --filter=blob:none --recurse-submodules=no $(git config --default origin --get clone.defaultRemoteName) $(git rev-parse HEAD)
[unshallow] Failed to unshallow: Error: fatal: Server does not support --shallow-since
fatal: the remote end hung up unexpectedly

[unshallow] Running git fetch --shallow-since="1 month ago" --update-shallow --filter=blob:none --recurse-submodules=no $(git config --default origin --get clone.defaultRemoteName) $(git rev-parse --abbrev-ref --symbolic-full-name @{upstream})
[unshallow] Failed to unshallow again: Error: error: unknown option `abbrev-ref --symbolic-full-name @{upstream}'

Tested with git 2.39.2 and it works fine, however I cannot change the git version 2.47.0
Thank you.
Best Regards.

Describe what you expected

Expected a normal upload of the git data

Steps to reproduce the issue

No response

Additional context

node version: v18.13.0
npm version: v8.19.3
datadog-ci: 2.46.2

Command

None

@pedrooct pedrooct added the bug Something isn't working label Jan 7, 2025
@Drarig29 Drarig29 added the source-code-integration Related to [git-metadata] label Jan 7, 2025
@jminuscula jminuscula reopened this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working source-code-integration Related to [git-metadata]
Projects
None yet
Development

No branches or pull requests

3 participants