diff options
| author | 2026-02-21 04:20:07 +0800 | |
|---|---|---|
| committer | 2026-02-21 04:20:07 +0800 | |
| commit | 344b30bca7306c3de55839cfccfb6201bd6a433c (patch) | |
| tree | c684ec7034b381a3c4ed4f4a12b79ce7e18363a5 /objectstore/loose | |
| parent | objectstore/loose: We should receive the objects directory, not repo root (diff) | |
| signature | No signature | |
objectstore/loose: Use filepath instead of path when joining OS paths
Diffstat (limited to 'objectstore/loose')
| -rw-r--r-- | objectstore/loose/paths.go | 4 |
1 files changed, 2 insertions, 2 deletions
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. |
