git(1.8.3.1) push to an empty repository failed #3743

Closed
opened 2025-11-02 05:23:54 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @lunny on GitHub (Aug 7, 2019).

On a client machine with git version 1.8.3.1

  1. created a empty repository(No readme and others) on gitea(version 1.9.0)
  2. git push -u origin master, then it returned
error: src refspec master does not match any.
error: failed to push some refs to 'https://xxxx/myname/myrepo.git'

Gitea error log is:

2019/08/07 16:25:44 routers/repo/http.go:430:serviceRPC() [E] Fail to serve RPC(upload-pack): exit status 128 - {[102 97 116 97 108 58 32 116 104 101 32 114 101 109 111 116 101 32 101 110 100 32 104 117 110 1
03 32 117 112 32 117 110 101 120 112 101 99 116 101 100 108 121 10] 0 0}

But with git 2.x, there is no error here.

Originally created by @lunny on GitHub (Aug 7, 2019). On a client machine with git version 1.8.3.1 1. created a empty repository(No readme and others) on gitea(version 1.9.0) 2. `git push -u origin master`, then it returned ``` error: src refspec master does not match any. error: failed to push some refs to 'https://xxxx/myname/myrepo.git' ``` Gitea error log is: ``` 2019/08/07 16:25:44 routers/repo/http.go:430:serviceRPC() [E] Fail to serve RPC(upload-pack): exit status 128 - {[102 97 116 97 108 58 32 116 104 101 32 114 101 109 111 116 101 32 101 110 100 32 104 117 110 1 03 32 117 112 32 117 110 101 120 112 101 99 116 101 100 108 121 10] 0 0} ``` But with git 2.x, there is no error here.
GiteaMirror added the issue/stale label 2025-11-02 05:23:54 -06:00
Author
Owner

@stale[bot] commented on GitHub (Oct 6, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Oct 6, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Oct 20, 2019):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Oct 20, 2019): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Author
Owner

@zeripath commented on GitHub (Oct 20, 2019):

Likely fixed by #8476 in any case.

@zeripath commented on GitHub (Oct 20, 2019): Likely fixed by #8476 in any case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3743