Fails to udpate local project when working on a local branch

Open
#174 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
cli

Research direction

Start in divio_cli/localdev/main.py around line 618, where the origin remote is hardcoded. Trace how the local branch and its upstream remote are determined, then review the behavior when no remote exists. Done means local branches use their upstream remote when available and otherwise ask for confirmation instead of failing.

Written by the indexing model from the issue text.

Description

Somewhat common usecase is to work on feature branches, that may or may not be present on origin remote, but might be present on different remote.

Currently 'origin' is hardcoded https://github.com/divio/divio-cli/blob/master/divio_cli/localdev/main.py#L618

It would be great to have it pull from the set upstream remote or in case it's not on any remote yet ask for a confirmation to approve continuing instead of failing

Dominant language
Python
Stars
23
Forks
19
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from divio/divio-cli

All issues in divio/divio-cli

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.