-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Description
- Gitea version (or commit ref):
df255783
- Git version: 2.17.1
- Operating system: Linux x86_64
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL) - https://try.gitea.io/rob2/nope
- No
- Not relevant
- Log gist:
Description
Failed migration does not rollback database properly.
To recreate:
- Visit https://try.gitea.io/repo/migrate
- Enter clone URL
https://github.com/nope/nope.git
and repo namenope
- Leave clone authentication blank
- Submit form
**Expected behaviour: **
See error message Authentication failed: Clone: exit status 128 - fatal: could not read Username for 'https://github.com': No such device or address and no repo is created in the database
Actual behaviour
Error message above is displayed but an empty repo is also created in the database, shows on the user's profile and generates a 500 when visited.
Note that deleting the repo from the DB is not enough to clean this up, there are also entries in the action
table too (and possibly elsewhere)
Screenshots
N/A
Metadata
Metadata
Assignees
Labels
No labels