From 344b30bca7306c3de55839cfccfb6201bd6a433c Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 21 Feb 2026 04:20:07 +0800 Subject: objectstore/loose: Use filepath instead of path when joining OS paths --- objectstore/loose/paths.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'objectstore/loose') diff --git a/objectstore/loose/paths.go b/objectstore/loose/paths.go index 7c8bae92..04730bd3 100644 --- a/objectstore/loose/paths.go +++ b/objectstore/loose/paths.go @@ -5,7 +5,7 @@ import ( "fmt" "io/fs" "os" - "path" + "path/filepath" "codeberg.org/lindenii/furgit/objectid" "codeberg.org/lindenii/furgit/objectstore" @@ -17,7 +17,7 @@ func (store *Store) objectPath(id objectid.ObjectID) (string, error) { return "", fmt.Errorf("objectstore/loose: object id algorithm mismatch: got %s want %s", id.Algorithm(), store.algo) } hex := id.String() - return path.Join(hex[:2], hex[2:]), nil + return filepath.Join(hex[:2], hex[2:]), nil } // openObject opens the loose object file for id. -- cgit v1.3.1-10-gc9f91