gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Auto detect authentication method broken for organisation repos

Open SohamGhugare opened this issue 1 year ago • 4 comments

The auto detect method seems to throw an error for organisation repos (especially the ones I'm owner in). The error message says

Failed to push branch: Project remote authentication failed

switching to some other mode like ssh, works fine!

SohamGhugare avatar Feb 22 '24 14:02 SohamGhugare

I highly suspect if this is related to the organisation's OAuth Restriction Policy? However the error message doesn't mention anything like that.

SohamGhugare avatar Feb 22 '24 14:02 SohamGhugare

As a workaround, by now there is the alternative Git executable method to push and fetch remote repositories. If Git can do it, so now can GitButler.

Screenshot 2024-04-22 at 18 46 41

Does that work for you?

(It's likely that auto-detection also works now as it will try to use the Git executable and succeed)

Byron avatar Apr 22 '24 16:04 Byron

Yep, auto detect works fine in the newer versions. However there's another issue now, since they added an explicit screen for choosing your method of authentication, whenever I choose a repo which has a remote linked to an organization, there's a slight chance that it will show Error: Timed Out and then persist until I redo the whole procedure.

SohamGhugare avatar May 01 '24 18:05 SohamGhugare

Do note that this only happens with organization repos, I haven't faced this issue with any of my private or non-organizational repos yet.

SohamGhugare avatar May 01 '24 18:05 SohamGhugare

Hey, thanks for getting back with this updated feedback. Since the main issue for this is resolved, I will now close this. Feel free to open a new github issue if you hit anything else that is a problem

krlvi avatar Aug 16 '24 11:08 krlvi