diff options
Diffstat (limited to 'internal/lfsutil/storage.go')
-rw-r--r-- | internal/lfsutil/storage.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/internal/lfsutil/storage.go b/internal/lfsutil/storage.go index fa10ee03..b2bfe37f 100644 --- a/internal/lfsutil/storage.go +++ b/internal/lfsutil/storage.go @@ -6,7 +6,6 @@ package lfsutil import ( "path/filepath" - "strings" ) // Storage is the storage type of an LFS object. @@ -23,7 +22,5 @@ func StorageLocalPath(root string, oid OID) string { return "" } - // Valid OID is guaranteed to have second element as hash. - hash := strings.SplitN(string(oid), ":", 2)[1] - return filepath.Join(root, string(hash[0]), string(hash[1]), hash) + return filepath.Join(root, string(oid[0]), string(oid[1]), string(oid)) } |