aboutsummaryrefslogtreecommitdiff
path: root/objectstore/loose
diff options
context:
space:
mode:
Diffstat (limited to 'objectstore/loose')
-rw-r--r--objectstore/loose/paths.go4
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.