Skip to content

bad numeric config value 'updateInstead' for 'receive.denycurrentbranch' #48

@bhelx

Description

@bhelx

When doing git push for the first time, I was seeing this error:

fatal: bad numeric config value 'updateInstead' for 'receive.denycurrentbranch' in config: invalid unit
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

After googling around for a while I realized this was because my git version was too old for this git config value. Debian 8 had decided to install git 2.1.4. I had to use a testing repo to get the latest git version 2.11.0:

  1. Added deb http://ftp.us.debian.org/debian testing main contrib non-free to /etc/apt/sources.list
  2. apt-get update
  3. apt-get install git/testing

I thought I would let you guys know and if someone is searching for this error they may find this. Perhaps the minimum versions could get a special callout in the README?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions