Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Git step errors when current branch has no remote tracking branch set #1026

Open
underyx opened this issue Oct 10, 2022 · 0 comments
Open

Git step errors when current branch has no remote tracking branch set #1026

underyx opened this issue Oct 10, 2022 · 0 comments

Comments

@underyx
Copy link

underyx commented Oct 10, 2022

What did you expect to happen?

I ran the git step via topgrade targeting a repo where I recently created a local branch for some work in progress. This branch was never pushed to the remote. I expected topgrade to 1) fetch all other branches and 2) consider this branch up-to-date, as there can be no more recent refs for a branch that only exists locally.

What actually happened?

Topgrade fails with an error, where git complains that my local branch has no tracking information.

There is no tracking information for the current branch.
Please specify which branch you want to rebase against.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> bence/my-local-branch

Additional Details

  • Which operating system or Linux distribution are you using? macOS
  • How did you install Topgrade? brew
  • Which version are you running? Topgrade 9.0.1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant