Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid "Unable move and reuse existing repository to required location" warning?

How do you avoid this warning?

Repository is current at '/home/vsts/work/1/s/env-ppe', move to '/home/vsts/work/1/q'.
##[warning]Unable move and reuse existing repository to required location.

Since there's no variable that gets generated that represents the folder where things are checked out unless it's self

like image 599
Archimedes Trajano Avatar asked Nov 04 '25 12:11

Archimedes Trajano


1 Answers

Please check this issue on GitHub. People create a folder before checking out a repo:

- task: PowerShell@2
  displayName: "Create repository folder (workaround)"
  inputs:
    targetType: inline
    script: |
        New-Item -Path . -Name "$(Build.Repository.Name)" -ItemType "directory" # Equals "self"
    pwsh: true
like image 194
Krzysztof Madej Avatar answered Nov 06 '25 02:11

Krzysztof Madej



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!