-
Notifications
You must be signed in to change notification settings - Fork 651
[Question] Unshallow Git repository in GitLab #2358
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
Comments
Are you unable to make the repository unshallow? |
I do not know how to do this. |
Solved!
thanks to @asbjornu for push me in the right direction |
Simply add before_script:
# use unshallow instead of GIT_DEPTH
- git fetch --unshallow --all Thus you don't get annoyed, once you hit the 1000 commits threshold (this is when you consider updating the value to 10000). |
FYI |
Hello, I Tried both |
Just stumbled upon this problem in an Azure pipeline executed on a home-made VM. Possibly I lack some setting somewhere. Reported as a new issue: #4094 |
* GitTools/GitVersion#2358 Signed-off-by: bigsaltyfishes <[email protected]>
* GitTools/GitVersion#2358 Signed-off-by: bigsaltyfishes <[email protected]>
Describe the bug
I have a simple .net core 3.1 project in VS2019 including GitVersionTask Version=5.3.7 that normally compiles in VS.
I have a GitLab job that compiles too if GitVersionTask is removed from packages
Expected Behavior
compilation by gitlab job
Actual Behavior
I got an error:
C:\Users\xxxx\.nuget\packages\gitversiontask\5.3.7\build\GitVersionTask.targets(46,9): error : GitVersionException: Cannot find commit 37263fb6bcfabee8cff19327eb128314dd5c7be3. Please ensure that the repository is an unshallow clone with
git fetch --unshallow. [C:\Gitlab-Runner\builds\3VbVuPNg\0\xxxx\blazor\BlazorApp1\BlazorApp1.csproj]
and cannot continue the compilation.
Possible Fix
Steps to Reproduce
difficult: it seems to depend from our GitLabRunner for windows application, the previous one was working fine (see Environment)
Context
<DisableGitVersionTask>true</DisableGitVersionTask>
inside the<PropertyGroup>
of BlazorApp1.csproj but the fatal error persists.Environment
dotnet publish BlazorApp1.csproj -c Pre-release
The text was updated successfully, but these errors were encountered: