0
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-23 00:31:07 +01:00
forgejo/services/repository/files
Yarden Shoham 03864f78c5
Return empty url for submodule tree entries () ()
Backport 

Close .

Refer to [Github's
API](https://docs.github.com/en/rest/git/trees?apiVersion=2022-11-28#get-a-tree),
if a tree entry is a submodule, its url will be an empty string.

Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: delvh <leon@kske.dev>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
(cherry picked from commit 8f5b2f1ddf)
2023-02-23 09:37:06 +01:00
..
cherry_pick.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
commit.go Use complete SHA to create and query commit status () () 2022-12-28 11:03:21 +01:00
content.go escape filename when assemble URL () () 2023-02-12 09:39:52 +00:00
content_test.go Add latest commit's SHA to content response () 2022-07-30 16:09:04 +08:00
delete.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
diff.go Propagate context and ensure git commands run in request context () 2022-01-19 23:26:57 +00:00
diff_test.go Calculate filename hash only once () 2022-05-09 00:29:50 +02:00
file.go Propagate context and ensure git commands run in request context () 2022-01-19 23:26:57 +00:00
file_test.go Add latest commit's SHA to content response () 2022-07-30 16:09:04 +08:00
patch.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
temp_repo.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
tree.go Return empty url for submodule tree entries () () 2023-02-23 09:37:06 +01:00
tree_test.go Propagate context and ensure git commands run in request context () 2022-01-19 23:26:57 +00:00
update.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
upload.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00