git-up / GitUp

The Git interface you've been missing all your life has finally arrived.
http://gitup.co
GNU General Public License v3.0
11.48k stars 1.25k forks source link

Can't push to remote #893

Closed japanese-goblinn closed 1 year ago

japanese-goblinn commented 1 year ago

Hi, love GitUp so far but I can't manage to understand why push is not working, while fetch is working fine. Also other Fork (git client) and CLI are working fine. Where should I look into to fix this issue?

image
lucasderraugh commented 1 year ago

Haven't seen this issue yet. Anything special and is this a regression for you from 1.3.2?

japanese-goblinn commented 1 year ago

@lucasderraugh I never used GitUp before and 1.3.4 is my first version. Also I managed to find that error happening in the git_remote_connect_ext(1 image) function after prompt for keychain access (2 image)

image image
japanese-goblinn commented 1 year ago

@lucasderraugh Oh, okay I figured this out. After pressingDeny i field in my username and access token and now it's working! Maybe this is something with two step authentication 🤔? I will dig in a little more to find out how to fix this, because it's keep asking me for keychain password and credentials

japanese-goblinn commented 1 year ago

As I mentioned in message above when I entering my username and access token everything works but why this keychain pop up is keeping showing every time? I started to figuring this out and found out that in KeychainAccessor savePlainTextAuthenticationToKeychainForURL: calling of SecKeychainSetUserInteractionAllowed returning no error while call of SecKeychainAddInternetPassword resulting to -25299 which according to this site means Duplicate Item. That weird. Pop up is still showing every time event when this item already exist. So we again returning to unexpected https status... and how to figure out why this error happens when correct credentials are clearly in keychain. Password to keychain is correct because in other way it'll not open it

Also in release version that I've installed from website it always shows an error and never asks for keychain contrast to debug mode, even when I deleted the app even of I reinstall the app. Any ideas how to reset this?

japanese-goblinn commented 1 year ago

Oh, I figured this out. I have some other keychain items for my previous work account. I've deleted them and now everything works!