Skip to content

x/review/git-codereview: doesn't set upstream to origin/master #9377

@mattn

Description

@mattn

We need to set upstream to master like below.

$ git checkout -b fix-windows-readlink
$ vim foo.go
$ git change
git rev-parse --abbrev-ref fix-windows-readlink@{u}
error: No upstream branch found for 'fix-windows-readlink'
error: No upstream branch found for 'fix-windows-readlink'
fatal: ambiguous argument 'fix-windows-readlink@{u}': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
fix-windows-readlink@{u}
git branch --set-upstream fix-windows-readlink origin/master

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions