1.17.0 template bug: remote head refers to nonexistent ref unable to checkout #9420

Closed
opened 2025-11-02 08:38:13 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @ajeep8 on GitHub (Aug 18, 2022).

Description

I clearly start a docker 1.17.0, then add a repo as template, then add a 2nd repo using the 1st repo template, when I 'git clone 2nd repo', it warning: remote head refers to nonexistent ref unable to checkout.

Then I remove the gitea directory, clearly start a docker 1.16.5, do the same process as above, it correctly git clone.

Then I run 1.17.0 docker image on the 1.16.5 setup gitea directory, add a 3rd repo using the 1st repo template, when I 'git clon 3rd_repo', it warning: remote head refers to nonexistent ref unable to checkout.

Then I run 1.16.5 docker image again, it can't start, [F] Your database (migration version: 224) is for a newer Gita, you can not use the newer database for this old Gitea release (211).

So, I think 1.17.0 has bug on add a repo using template, 1.16.5 is OK.

Gitea Version

1.17.0

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

My docker-compose.yml file:

version: "3.5"

networks:
  gitea:
    external: false

services:
  gitea:
    image: gitea/gitea:1.16.5
    environment:
      - USER_UID=1002
      - USER_GID=1002
    restart: always
    volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "3000:3000"
      - "8122:22"

Database

No response

Originally created by @ajeep8 on GitHub (Aug 18, 2022). ### Description I clearly start a docker 1.17.0, then add a repo as template, then add a 2nd repo using the 1st repo template, when I 'git clone 2nd repo', it warning: remote head refers to nonexistent ref unable to checkout. Then I remove the gitea directory, clearly start a docker 1.16.5, do the same process as above, it correctly git clone. Then I run 1.17.0 docker image on the 1.16.5 setup gitea directory, add a 3rd repo using the 1st repo template, when I 'git clon 3rd_repo', it warning: remote head refers to nonexistent ref unable to checkout. Then I run 1.16.5 docker image again, it can't start, [F] Your database (migration version: 224) is for a newer Gita, you can not use the newer database for this old Gitea release (211). So, I think 1.17.0 has bug on add a repo using template, 1.16.5 is OK. ### Gitea Version 1.17.0 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? My docker-compose.yml file: ``` version: "3.5" networks: gitea: external: false services: gitea: image: gitea/gitea:1.16.5 environment: - USER_UID=1002 - USER_GID=1002 restart: always volumes: - ./gitea:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - "3000:3000" - "8122:22" ``` ### Database _No response_
GiteaMirror added the type/bug label 2025-11-02 08:38:13 -06:00
Author
Owner

@ekeyme commented on GitHub (Oct 30, 2023):

I came across this problem on 1.17.4 version gitea too.

@ekeyme commented on GitHub (Oct 30, 2023): I came across this problem on 1.17.4 version gitea too.
Author
Owner

@lunny commented on GitHub (Oct 30, 2023):

1.17 is outdated, please upgrade your instance.

@lunny commented on GitHub (Oct 30, 2023): 1.17 is outdated, please upgrade your instance.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9420