1
1
mirror of https://github.com/go-gitea/gitea synced 2025-12-07 13:28:25 +00:00

Fix reading git notes from nested trees (#8026)

* Fix reading notes from nested trees

The GIT documentation for notes states "Permitted pathnames have the
form ab/cd/ef/.../abcdef...: a sequence of directory names of two
hexadecimal digits each followed by a filename with the rest of
the object ID."

* Add test case

* Fix new lines
This commit is contained in:
Filip Navara
2019-09-12 03:14:41 +02:00
committed by Lunny Xiao
parent 5e67e0100c
commit 52fda312df
23 changed files with 63 additions and 17 deletions
@@ -0,0 +1 @@
2
+1
View File
@@ -0,0 +1 @@
ref: refs/heads/master
@@ -0,0 +1,7 @@
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
@@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.
Binary file not shown.
@@ -0,0 +1,2 @@
0000000000000000000000000000000000000000 ba0a96fa63532d6c5087ecef070b0250ed72fa47 Filip Navara <filip.navara@gmail.com> 1567767895 +0200 commit (initial): 1
ba0a96fa63532d6c5087ecef070b0250ed72fa47 3e668dbfac39cbc80a9ff9c61eb565d944453ba4 Filip Navara <filip.navara@gmail.com> 1567767909 +0200 commit: 2
@@ -0,0 +1,2 @@
0000000000000000000000000000000000000000 ba0a96fa63532d6c5087ecef070b0250ed72fa47 Filip Navara <filip.navara@gmail.com> 1567767895 +0200 commit (initial): 1
ba0a96fa63532d6c5087ecef070b0250ed72fa47 3e668dbfac39cbc80a9ff9c61eb565d944453ba4 Filip Navara <filip.navara@gmail.com> 1567767909 +0200 commit: 2
@@ -0,0 +1,3 @@
xťŽ;Â0 @™s
ďH•ă&v*!ÄÄČś4JôŁ(p~
G`|oxziťç©‘;´š3Đ –ÂČŢ÷6  ś$`¦"NRäŃşXlałiÍK¨¨ĺŢ÷4rň$§\P0"yĚŁPQ'F_í±V¸NĎi›ľµ*śĘ—şĺG—ű¬ÓłKë|ëY„eŔŽHf·űfË ÜăEm
@@ -0,0 +1 @@
x;ֲ0©}ם‘"ַ¿u$„RQr‡•K1F–ֹש1nfקR-%w˜ׁzcב´{ה%7ְ¢h#ׁx¶ˆֹQ₪איfXׁ»?jƒKע ®´S#8ֹ׳¦חֿײ{¡¼M©–3ּ> †¨…£6Z«Qַmח¿װ
@@ -0,0 +1 @@
3e668dbfac39cbc80a9ff9c61eb565d944453ba4
@@ -0,0 +1 @@
654c8b6b63c08bf37f638d3f521626b7fbbd4d37