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
And when running this small program that uses libgit2: test.c.txt
built using gcc test.c -lgit2 -L <path to libgit2>/libgit2/build/ -Wall -pedantic -I <path to libgit2>/libgit2/include/
And run like this: LD_LIBRARY_PATH=<path to libgit2>/libgit2/build/ ./a.out <Path to repo> <path to patch file>
Expected behavior
It successfully applies the change
Actual behavior
Error applying patch: -1 no error
I checked also modifying the submodule and it fails too
Reproduction steps
on any existing repo that contains a submodule generate a diff that removes it:
(I used git 2.25.1)
my generated patch looks like this:
And when running this small program that uses libgit2:
test.c.txt
built using
gcc test.c -lgit2 -L <path to libgit2>/libgit2/build/ -Wall -pedantic -I <path to libgit2>/libgit2/include/
And run like this:
LD_LIBRARY_PATH=<path to libgit2>/libgit2/build/ ./a.out <Path to repo> <path to patch file>
Expected behavior
It successfully applies the change
Actual behavior
Error applying patch: -1 no error
I checked also modifying the submodule and it fails too
Version of libgit2 (release number or SHA1)
1.3.0 and main ( d74d491 )
Operating system(s) tested
Linux (Ubuntu 20.04)
The text was updated successfully, but these errors were encountered: