Forum Discussion

MaWa316's avatar
MaWa316
Copper Contributor
Sep 07, 2023

Setting a Depth of 1 with Remote Repo settings (--depth 1)

Hi there,

 

We are still running TFS 2017 but will soon be upgrading to DevOps Server 2022.  In the meantime, we have a build that pulls a rather large repo.  Is there a way to pass --depth 1 to or for the Remote Repo build definition setup?

 

I thought I read of setting a property, something like Build.RepoDepth (forget the actual name I used), but when I tried that, it did not pull at depth 1.

 

Any info appreciated!

 

 

  • I think I found it. On the Remote Repo setup dialog, the advanced settings were hidden. After enabling or unhiding, the shallow fetch and depth settings were visible and accessible.
  • MaWa316's avatar
    MaWa316
    Copper Contributor
    I think I found it. On the Remote Repo setup dialog, the advanced settings were hidden. After enabling or unhiding, the shallow fetch and depth settings were visible and accessible.

Resources