Skip to content

credential-osxkeychain is not a git command #772

Closed

Description

@cheshire137

In 0.0.17, I added a newly initialized git repo to the app. I had previously pushed via the command line. The remote is using the https URL. When I made a commit via the app and hit the app's push button, I got this error in response:

screen shot 2016-12-23 at 8 12 22 pm

Activity

  1. shiftkey commented on Jan 9, 2017

    @shiftkey
    Member

    @cheshire137 can you check under Preferences to see that you're signed into a GitHub account? I'm trying to reproduce this, and I think the fact I have git-credential-osxkeychain on my PATH might be an issue - is your setup similar?

    $ which git-credential-osxkeychain
    /usr/local/bin/git-credential-osxkeychain
  2. cheshire137 commented on Jan 9, 2017

    @cheshire137
    ContributorAuthor

    I look signed in:

    screen shot 2017-01-09 at 11 22 03 am

    Ooh I get a different result for the command:

    % which git-credential-osxkeychain
    git-credential-osxkeychain not found
    
  3. joshaber commented on Jan 9, 2017

    @joshaber
    Contributor

    It shouldn't care about osxkeychain unless authentication with the app's credentials fails.

    You might try logging out and then back in again?

  4. shiftkey commented on Jan 12, 2017

    @shiftkey
    Member

    I could trigger this after logging in, and after relaunching the app. Seems to be not retrieving the user which then means envForAuthentication isn't setup correctly - which would explain why it's trying to use git-credential-osxkeychain

  5. self-assigned this
    on Jan 12, 2017
  6. shiftkey commented on Jan 12, 2017

    @shiftkey
    Member

    @cheshire137 can you tell me if this repository is listed under "GitHub" or "Other" when you look at it in the sidebar? For example, I was seeing this issue when I added the Desktop repository - and this was because it didn't consider it a GitHub repository until I'd signed in and had a refresh occur in the background:

    I think we still need to setup GIT_ASKPASS to fail when not signed in, rather than have it fall through to whatever's been configured by Git.

  7. cheshire137 commented on Jan 12, 2017

    @cheshire137
    ContributorAuthor

    Ooh, good intuition! It is indeed in my 'Other' section which is odd as the repo is definitely hosted on GitHub.

    screen shot 2017-01-12 at 1 26 58 pm

  8. shiftkey commented on Jan 12, 2017

    @shiftkey
    Member

    Interesting, so I can see the public repo but for some reason it's not being refreshed and populated with the GitHub API information.

    One last thing to help reproduce it: could you list the remotes for the repository?

    git remote -v
    
  9. cheshire137 commented on Jan 12, 2017

    @cheshire137
    ContributorAuthor
    heroku	https://git.heroku.com/overwatch-counter-picker.git (fetch)
    heroku	https://git.heroku.com/overwatch-counter-picker.git (push)
    origin	https://github.com/cheshire137/overwatch-counter-picker.git (fetch)
    origin	https://github.com/cheshire137/overwatch-counter-picker.git (push)
    

    Think the heroku remote is interfering?

  10. shiftkey commented on Jan 12, 2017

    @shiftkey
    Member

    @cheshire137 yeah, I think that's related to the issue at hand. Thanks for all the info 💖

  11. shiftkey commented on Jan 19, 2017

    @shiftkey
    Member

    @cheshire137 actually one more question - is master setup to track heroku or origin?

    git branch -vv
    
  12. cheshire137 commented on Jan 19, 2017

    @cheshire137
    ContributorAuthor

    origin!

    % git branch -vv
      database-stuff      a711082 [origin/database-stuff: gone] Add Heroku database steps to readme
      detect-cards-screen 911d49e [origin/detect-cards-screen: gone] Adjust template scale and Ana template
    * master              b017f11 [origin/master] Use full scale sample-screenshot on index
    
  13. shiftkey commented on Jan 19, 2017

    @shiftkey
    Member

    @cheshire137 thanks! i've encountered an issue where I'm signed in but I don't have a token, which I think might be the root cause of this...

  14. cheshire137 commented on Jan 20, 2017

    @cheshire137
    ContributorAuthor

    In my ~/.gitconfig, I do have this chunk:

    [credential]
    	helper = osxkeychain
    
  15. cheshire137 commented on Jan 27, 2017

    @cheshire137
    ContributorAuthor

    I got a variation on this one, this time after hitting 'Push origin' and it spun for a bit without pushing my changes:

    screen shot 2017-01-27 at 11 09 39 am

  16. locked as resolved and limited conversation to collaborators on Jul 23, 2018
  17. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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