-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用git提交时报短读错误 #49
Comments
读操作预处理回调中缓冲读取时 Data->Iopb->Parameters.Read.Length = (ULONG)(StreamContext->FileSize - StartingVbo) 如果在后处理回调中 |
记录一下:preread中的cachio读取,修改length,虽然在postread中看到的length没有改变,但是实际读取的内容长度确实是按修改后的length长度,Data->IoStatus.Information 操作的字节也是实际操作的字节,但是git做了返回值检查,所以又回到了原始问题 |
使用自己编译的debug版本的git时,进行gdb单步调试,发现没有问题,很奇怪 git版本2.33.1.windows.1 |
将一个加密文件(txt类型)提交时,运行git add命令时会报短读错误,猜测是git先检查的文件大小与添加时明文大小不一致引起的
The text was updated successfully, but these errors were encountered: