Error authenticating

Issue #155 resolved
Zachary Kent created an issue

I have cloned our Git repo to our DEV server so we can just pull the changes easily to the server. However I was the first one to do so and used the URL When I do a pull from the DEV server, I am asked for my password and the operation works fine. However, when my co-workers attempt this, it fails because its attempting to authenticate @zachary.kent. How can I fix this so they can also use this repo.

Error they are getting: error: The requested URL returned error: 401 while accessing (note my name in the URL)

Comments (6)

  1. Mads Kiilerich

    I think that is a git question more than a Kallithea question.

    I guess git (like Mercurial) has a way to update the address of an external reference.

  2. Zachary Kent reporter

    I updated the upstream URL and removed the zachary.kent@ part of the URL and it would no longer connect. Could this be a setting in our Kallithea setup? We are using LDAP.

  3. Søren Løvborg

    This is not a Kallithea issue, but a Git client issue. Ensure that your remotes are set up correctly (view them using git remote -v; more info: git remote --help).

    If different users are sharing the same repository clone, the remotes should of course not include username or password; then Git will ask for username and password on every push and fetch operation. (If the users are using different user accounts on the server, Git can be configured to remember the credentials per user; see git credentials --help).

  4. Søren Løvborg

    Never encountered that bug. :-) Unfortunately, Git 1.7.1 is more than 5 years old and very outdated, even as it's still the standard on some enterprise distros.

    Even just 1.7.11 is a big step forward compared to 1.7.1; but I would highly recommend upgrading to as recent a version as is feasible.

  5. Log in to comment