"info/refs not valid: is this a git repository?" after changing domain name #2486

Closed
opened 2025-11-02 04:38:10 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @theAkito on GitHub (Nov 3, 2018).

  • Gitea version (or commit ref): 1.6.0-rc1
  • Git version: 2.11.0
  • Operating system:
    PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="9"
    VERSION="9 (stretch)"
    ID=raspbian
    ID_LIKE=debian
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

When trying to push/pull/clone a repository, I get the error

fatal: https://example.org/User/example.git/info/refs not valid: is this a git repository?

This happens since I changed the domain name for the website and included a reverse proxy. Everything else on Gitea works, just not git itself. Note that everything worked perfectly before changing those two things.

git update-server-info does not do anything.

Originally created by @theAkito on GitHub (Nov 3, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.6.0-rc1 - Git version: 2.11.0 - Operating system: PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=raspbian ID_LIKE=debian - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description When trying to push/pull/clone a repository, I get the error `fatal: https://example.org/User/example.git/info/refs not valid: is this a git repository?` This happens since I changed the domain name for the website and included a reverse proxy. Everything else on Gitea works, just not git itself. Note that everything worked perfectly before changing those two things. `git update-server-info` does not do anything.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2486