Skip to content

Feature/gbp pull#39

Closed
marquiz wants to merge 2 commits into
agx:masterfrom
marquiz:feature/gbp-pull
Closed

Feature/gbp pull#39
marquiz wants to merge 2 commits into
agx:masterfrom
marquiz:feature/gbp-pull

Conversation

@marquiz
Copy link
Copy Markdown
Contributor

@marquiz marquiz commented Dec 16, 2017

No description provided.

@agx
Copy link
Copy Markdown
Owner

agx commented Dec 16, 2017

Other branches should be ff otherwise something is wrong. The second part makes sense but needs a test.

@marquiz
Copy link
Copy Markdown
Contributor Author

marquiz commented Dec 16, 2017

Other branches should be ff otherwise something is wrong.

OK, makes sense.

The second part makes sense but needs a test.

Good, point. There were not component unit tests back in the days I originally wrote this :)

@marquiz
Copy link
Copy Markdown
Contributor Author

marquiz commented Jan 12, 2018

I now added unit test for the --all option.

I didn't include the other commit for now. But, I still think there is something broken in the gbp-pull logic when --force is used. The currently checked-out branch is merged but the others are just reset which I see kind of bad because the end result depends on the currently checked out branch. For example, if I happened to be on pq branch the debian branch would be simply reseted to whatever the upstream has. But, if I happened to be on the debian branch it would be merged, instead. Any thoughts?

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
This updates all remote-tracking branches (for the remote that is
fetched from) whose local branch name is identical to the remote branch
name.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
@marquiz
Copy link
Copy Markdown
Contributor Author

marquiz commented Jan 23, 2018

I see you pulled the patches. Thanks!

However, any comments on the --force logic question I raised?

@agx
Copy link
Copy Markdown
Owner

agx commented Jan 29, 2018

@marquiz could open another PR with you proposed change regarding merge vs. reset? The code in this PR is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants