[x]):[...routers/repo/pull.go:589 MergePullRequest()] [E] Merge: Writing sparse-checkout file to /Users/user/giteatmp/tmp/local-repo/merge-70720432.git/.git/info/sparse-checkout: open /Users/user/giteatmp/tmp/local-repo/merge-70720432.git/.git/info/sparse-checkout: no such file or directory
Use squash merge style
@typeless
@yasuokav Have you mixed up with other changes?
The message should be at L452, not L589.
oops, I confused the file path. sorry.
I have no access to a MacOS machine for now.
But I have a conjecture that the info directory under .git might not exist under certain circumstances.
Can you comment out https://github.com/go-gitea/gitea/blob/386e5312a4830ae9f87d00d7d95c8c849d50a06f/models/pull.go#L399 and look into the path to verify that?
I can submit a patch to create .git/info, but it'd be better if we can make sure.
I have no access to a MacOS machine for now.
But I have a conjecture that theinfodirectory under.gitmight not exist under certain circumstances.
Yes. I can confirm that.
ls
FETCH_HEAD HEAD config hooks logs objects packed-refs refs
Ok, I'll submit a patch soon.
By the way, thanks your your testing & report.
@yasuokav https://github.com/go-gitea/gitea/pull/5825
If you can verify this PR, that would be nice.
@yasuokav #5825
If you can verify this PR, that would be nice.
This PR will cause another problem.
[...routers/repo/pull.go:589 MergePullRequest()] [E] Merge: Writing sparse-checkout file to /Users/user/giteatmp/tmp/local-repo/merge-915998714.git/.git/info/sparse-checkout: open /Users/user/giteatmp/tmp/local-repo/merge-915998714.git/.git/info/sparse-checkout: permission denied
cd info
cd: permission denied: info
...
drwxr-xr-x hooks
drw------- info
drwxr-xr-x logs
drwxr-xr-x objects
...
My bad. I have updated the PR.
@typeless This PR solves this problem! Thank you