From 0c87d4c6aa63c80fdfa5f52f5d4fbddd5be084e3 Mon Sep 17 00:00:00 2001 From: Dee Kryvenko Date: Thu, 21 Sep 2023 14:34:38 -0600 Subject: [PATCH] Fix sanitizing state file path on Windows - fixes #40 --- storages/git/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storages/git/client.go b/storages/git/client.go index d72f57d..3aac1c4 100644 --- a/storages/git/client.go +++ b/storages/git/client.go @@ -5,7 +5,7 @@ import ( "fmt" "net/http" "os" - "path/filepath" + "path" "strings" "sync" @@ -29,7 +29,7 @@ func (storageClient *StorageClient) ParseMetadataParams(request *http.Request, m params := RequestMetadataParams{ Repository: query.Get("repository"), Ref: query.Get("ref"), - State: filepath.Clean(query.Get("state")), + State: path.Clean(query.Get("state")), } if params.Repository == "" {