diff --git a/.github/workflows/dotnet_ci.yml b/.github/workflows/dotnet_ci.yml
index 68a9dfc..bc29874 100644
--- a/.github/workflows/dotnet_ci.yml
+++ b/.github/workflows/dotnet_ci.yml
@@ -14,7 +14,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
- dotnet-version: 8.0.x
+ dotnet-version: 9.0.x
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
id: semantic
diff --git a/readme.md b/readme.md
index aca7bf0..2ebe6d7 100644
--- a/readme.md
+++ b/readme.md
@@ -24,6 +24,10 @@ dotnet tool install -g GitLabSync.Tool
### Usage
+To run the tool with your gitlab credentials, you need to set the environment variable `GitLab_OAuthToken` with a personal access token as the value.
+
+You can also set the environment variable `GitLab_HostUrl` to the host of your GitLab instance. This is optional and defaults to `https://gitlab.com`.
+
Run against the current directory will use `gitlabsync.yaml` in the current directory:
```ps
diff --git a/src/GitSync.GitLab.Tool/GitSync.GitLab.Tool.csproj b/src/GitSync.GitLab.Tool/GitSync.GitLab.Tool.csproj
index 6b3f021..95a58c3 100644
--- a/src/GitSync.GitLab.Tool/GitSync.GitLab.Tool.csproj
+++ b/src/GitSync.GitLab.Tool/GitSync.GitLab.Tool.csproj
@@ -1,33 +1,33 @@
-
-
-
- Exe
- net8.0
- enable
- enable
- gitlabsync
- GitLabSync.Tool
- True
- True
- True
- MIT
- readme.md
-
-
-
-
-
-
-
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
-
-
-
-
-
+
+
+
+ Exe
+ net9.0
+ enable
+ enable
+ gitlabsync
+ GitLabSync.Tool
+ True
+ True
+ True
+ MIT
+ readme.md
+
+
+
+
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
+
+
+
+
+
+
diff --git a/src/GitSync.GitLab/GitLabGateway.cs b/src/GitSync.GitLab/GitLabGateway.cs
index 12ea00d..f5ea3d4 100644
--- a/src/GitSync.GitLab/GitLabGateway.cs
+++ b/src/GitSync.GitLab/GitLabGateway.cs
@@ -229,7 +229,11 @@ public async Task CreateTree(INewTree newTree, string owner, string repo
return treeId;
}
- public async Task CreateBlob(string owner, string repository, string sha)
+ public
+#if DEBUG
+ async
+#endif
+ Task CreateBlob(string owner, string repository, string sha)
{
#if DEBUG
var blobPath = Path.Combine(this.blobStoragePath.Value, sha);
@@ -241,6 +245,10 @@ public async Task CreateBlob(string owner, string repository, string sha)
#endif
this.AddToKnown(sha, owner, repository);
+
+#if !DEBUG
+ return Task.CompletedTask;
+#endif
}
public async Task FetchBlob(string owner, string repository, string sha)
diff --git a/src/GitSync.GitLab/GitSync.GitLab.csproj b/src/GitSync.GitLab/GitSync.GitLab.csproj
index 6185aec..1c564a0 100644
--- a/src/GitSync.GitLab/GitSync.GitLab.csproj
+++ b/src/GitSync.GitLab/GitSync.GitLab.csproj
@@ -1,18 +1,18 @@
-
-
-
- net8.0
- enable
- enable
- false
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ net9.0
+ enable
+ enable
+ false
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/unit/GitSync.GitLab.Tests.csproj b/test/unit/GitSync.GitLab.Tests.csproj
index c6b46e7..881192f 100644
--- a/test/unit/GitSync.GitLab.Tests.csproj
+++ b/test/unit/GitSync.GitLab.Tests.csproj
@@ -1,30 +1,30 @@
-
-
-
- net8.0
- enable
- enable
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+ net9.0
+ enable
+ enable
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+