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
{{ message }}
Repository navigation
Excuting "gh browse gh browse -c -R owner/repo" inside another repo workspace uses the last commit of the workspace repo #4715
Thank you for reporting! Good catch; and I agree with your assessment. Since you've specified a repository using the -R flag, we should't pay attention to the local git repo anymore, but we erroneously still do.
Is it possible to run a git command against a remote repo? I know you can specify -C with some commands to point to a different local directory, but that doesn't let you run against a remote repo afaik. Would be nice to fix this without having to use the GH api to get the last commit SHA.
Activity
mislav commentedon Nov 23, 2021
Thank you for reporting! Good catch; and I agree with your assessment. Since you've specified a repository using the
-Rflag, we should't pay attention to the local git repo anymore, but we erroneously still do.despreston commentedon Nov 24, 2021
Is it possible to run a git command against a remote repo? I know you can specify
-Cwith some commands to point to a different local directory, but that doesn't let you run against a remote repo afaik. Would be nice to fix this without having to use the GH api to get the last commit SHA.mislav commentedon Nov 25, 2021
@despreston No, to solve this we would have to take one of the following approaches:
-cwas used with--repo; orfixes cli#4715, users can now open the last commit of a repo differen…