You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <param name="strict"> Treat warnings as errors and fail the build on warnings</param>
79
79
/// <param name="environment"> The environment to build</param>
80
80
/// <param name="fetchLatest"> If true, fetch the latest commit of the branch instead of the link registry entry ref</param>
81
+
/// <param name="assumeCloned"> If true, assume the repository folder already exists on disk assume it's cloned already, primarily used for testing</param>
81
82
/// <param name="ctx"></param>
82
83
[Command("clone-all")]
83
84
publicasyncTask<int>CloneAll(
84
85
bool?strict=null,
85
86
string?environment=null,
86
87
bool?fetchLatest=null,
88
+
bool?assumeCloned=null,
87
89
Cancelctx=default
88
90
)
89
91
{
@@ -97,7 +99,7 @@ public async Task<int> CloneAll(
_logger.LogInformation("{RepositoryName}: Assuming {RepositoryName}@{Commit} is already checked out to {CheckoutFolder}",repository.Name,repository.Name,gitRef,checkoutFolder.FullName);
140
+
returnnewCheckout
141
+
{
142
+
Directory=checkoutFolder,
143
+
HeadReference=git.GetCurrentCommit(),
144
+
Repository=repository,
145
+
};
146
+
}
147
+
135
148
if(attempt>3)
136
149
{
137
150
collector.EmitError("",$"Failed to clone repository {repository.Name}@{gitRef} after 3 attempts");
0 commit comments