Skip to content

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

Closed
@lunny

Description

@lunny

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions