vjekob / al-objid

Manage object IDs in multi-user environments with mind-boggling simplicity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error "We could not detect your current branch" when authorizing

kine opened this issue · comments

One my developer is experiencing this error:

We could not detect your current branch. Your repository could be in detached head state. Please, check out to an actual branch, and then retry.

when trying to authorize. We have tried first in workspace with two apps, but even when opening only the folder with one app.

Before I finish writing of this issues, we have tried to update git from 2.19 to latest and it solved the problem. Thus, leaving it here for others having same issue.

Yeah, this is because of Git versions. Ninja issues Git commands to perform Git functionality, and if any commands changed the way it works (or how it returns results) then Ninja won't be able to use such a command. In this case, you used a fairly old version of Git (from November 2019) and since Ninja was built later, it used a newer version of Git.

In any case, I am closing this issue, and anyone can still use the solution proposed by Kine (install a newer version) if you happen to hit the same issue.