Skip to content

Commit 27105e3

Browse files
authored
Merge branch 'main' into fix-access-expensive
2 parents 8e43672 + d7a6133 commit 27105e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/doctor/storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func checkStorage(opts *checkStorageOptions) func(ctx context.Context, logger lo
121121
storer: storage.LFS,
122122
isOrphaned: func(path string, obj storage.Object, stat fs.FileInfo) (bool, error) {
123123
// The oid of an LFS stored object is the name but with all the path.Separators removed
124-
oid := strings.ReplaceAll(path, "/", "")
124+
oid := strings.ReplaceAll(strings.ReplaceAll(path, "\\", ""), "/", "")
125125
exists, err := git.ExistsLFSObject(ctx, oid)
126126
return !exists, err
127127
},

0 commit comments

Comments
 (0)