You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The diff output of commit bb8d8a6f54c1 in the Linux kernel is truncated by pygit2. Here's a minimal reproducer:
Assuming 'linux' contains a Linux kernel tree such as one that can be obtained by git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git:
The same hunk as output by git show bb8d8a6f54c1 (without a pager):
@@ -431,6 +440,7 @@ static int compute_bitstructs(struct gfs2_rgrpd *rgd)
}
/**
+
* gfs2_ri_total - Total up the file system space, according to the rindex.
*
*/
Note that when using 'less' as a pager, it shows this hunk as:
@@ -431,6 +440,7 @@ static int compute_bitstructs(struct gfs2_rgrpd *rgd)
}
/**
+^@
* gfs2_ri_total - Total up the file system space, according to the rindex.
*
*/
(note the ^@ escape). I suspect maybe there's a NULL byte in the middle of the hunk output for some reason, and that this causes the diff to be terminated prematurely in pygit2?
The text was updated successfully, but these errors were encountered:
The diff output of commit
bb8d8a6f54c1
in the Linux kernel is truncated by pygit2. Here's a minimal reproducer:Assuming 'linux' contains a Linux kernel tree such as one that can be obtained by
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
:This ends with half a hunk:
The same hunk as output by
git show bb8d8a6f54c1
(without a pager):Note that when using 'less' as a pager, it shows this hunk as:
(note the ^@ escape). I suspect maybe there's a NULL byte in the middle of the hunk output for some reason, and that this causes the diff to be terminated prematurely in pygit2?
The text was updated successfully, but these errors were encountered: