From 52fda312dfd2ed93e512c8e210c5646e4ae53dbc Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Thu, 12 Sep 2019 03:14:41 +0200 Subject: 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 --- modules/git/tests/repos/repo3_notes/refs/heads/master | 1 + modules/git/tests/repos/repo3_notes/refs/notes/commits | 1 + 2 files changed, 2 insertions(+) create mode 100644 modules/git/tests/repos/repo3_notes/refs/heads/master create mode 100644 modules/git/tests/repos/repo3_notes/refs/notes/commits (limited to 'modules/git/tests/repos/repo3_notes/refs') diff --git a/modules/git/tests/repos/repo3_notes/refs/heads/master b/modules/git/tests/repos/repo3_notes/refs/heads/master new file mode 100644 index 0000000000..e96af8d801 --- /dev/null +++ b/modules/git/tests/repos/repo3_notes/refs/heads/master @@ -0,0 +1 @@ +3e668dbfac39cbc80a9ff9c61eb565d944453ba4 \ No newline at end of file diff --git a/modules/git/tests/repos/repo3_notes/refs/notes/commits b/modules/git/tests/repos/repo3_notes/refs/notes/commits new file mode 100644 index 0000000000..74e3d3ad8d --- /dev/null +++ b/modules/git/tests/repos/repo3_notes/refs/notes/commits @@ -0,0 +1 @@ +654c8b6b63c08bf37f638d3f521626b7fbbd4d37 \ No newline at end of file -- cgit v1.2.3