You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The remote references in my git repository has the following format refs/remotes/origin/%s
But the function reference.Name().Short() seems to match only refs/remotes/%s (doesn't match the origin)
I am not sure if i have to change the way i clone the git so that it lists the remote references with out "origin" and I will be able to use the reference.Name().Short() function.
Otherwise, i have the following code as a work around..
if ref.Name().String() == fmt.Sprintf("refs/remotes/origin/%s", branchName) {
fmt.Printf("it matches")
}
Could you please support me here ? Thank you in advance.
The text was updated successfully, but these errors were encountered:
Dear go-git community
The remote references in my git repository has the following format refs/remotes/origin/%s
But the function reference.Name().Short() seems to match only refs/remotes/%s (doesn't match the origin)
Please see
go-git/plumbing/reference.go
Line 22 in 9a6715a
When i execute git branch -a i get the following list ( see it has "origin") in it.
I am not sure if i have to change the way i clone the git so that it lists the remote references with out "origin" and I will be able to use the reference.Name().Short() function.
Otherwise, i have the following code as a work around..
Could you please support me here ? Thank you in advance.
The text was updated successfully, but these errors were encountered: