Skip to content
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

CleanUpMigrateInfo: exit status 2 - error: No such remote: 'origin' #32889

Closed
YowFung opened this issue Dec 18, 2024 · 2 comments · Fixed by #33129
Closed

CleanUpMigrateInfo: exit status 2 - error: No such remote: 'origin' #32889

YowFung opened this issue Dec 18, 2024 · 2 comments · Fixed by #33129
Labels

Comments

@YowFung
Copy link

YowFung commented Dec 18, 2024

Description

When I try to convert a mirrored repository to a normal repository, a 500 page error occurs.

Gitea Version

1.22.6

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image

image

Git Version

2.45.2

Operating System

Linux (Docker)

How are you running Gitea?

Docker

Database

MySQL/MariaDB

@lunny
Copy link
Member

lunny commented Dec 20, 2024

I cannot reproduce this both in main and release/v1.22

@yp05327
Copy link
Contributor

yp05327 commented Jan 6, 2025

I think this is partly caused by git itself, because I have no idea why your origin remote is missing, for this, maybe you need to provide more information to help us figure out the reason.


Why it is partly caused by git itself:

First, in Gitea, for all git remote xx related command, No such remote will be skipped as expected:
image
And at least for CleanUpMigrateInfo, it is from a commit about 6 years ago:
https://github.com/go-gitea/gitea/pull/6593/files

But git has changed the exit code for git remote xx command about 4 years ago: git/git@9144ba4
So exit status 128 is no longer correct any more, it is 2 now.

And as this change has been merged in git v2.30.0, I think if you downgrade your git version, you may not see this 500 error.
git/git@v2.29.0...v2.30.0

wxiaoguang pushed a commit to wxiaoguang/gitea that referenced this issue Jan 7, 2025
…n >=2.30.0 (go-gitea#33129)

Fix go-gitea#32889

---------

Co-authored-by: wxiaoguang <[email protected]>
# Conflicts:
#	modules/git/remote.go
lunny pushed a commit that referenced this issue Jan 8, 2025
…#33133)

And update some dependencies to fix bugs.

Backport  #33129, #33136

Fix #32889
Fix #33141
Fix #33139

---------

Co-authored-by: yp05327 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants