mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-14 14:13:36 +02:00
Use filepath.Join instead of path.Join for file system file operations (#33978)
This commit is contained in:
1 parent
82bc8b8ce6
commit
3fe449c21a
12 files changed
+23
-56
No files matched your search
@@ -8,7 +8,7 @@ package git
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
|
||||
gitealog "code.gitea.io/gitea/modules/log"
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
|
||||
// CommitNodeIndex returns the index for walking commit graph
|
||||
func (r *Repository) CommitNodeIndex() (cgobject.CommitNodeIndex, *os.File) {
|
||||
indexPath := path.Join(r.Path, "objects", "info", "commit-graph")
|
||||
indexPath := filepath.Join(r.Path, "objects", "info", "commit-graph")
|
||||
|
||||
file, err := os.Open(indexPath)
|
||||
if err == nil {
|
||||
|
||||
Reference in new issue
Block a user