gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Setup: Initial remote should match "Current target branch"

Open koppor opened this issue 1 year ago • 1 comments

Version

0.12.26

Operating System

Windows

Distribution Method

msi (Windows)

Describe the issue

I have a repository with multiple upstreams:

$ git remote -v
origin  [email protected]:koppor/jabref.git (fetch)
origin  [email protected]:koppor/jabref.git (push)
upstream        [email protected]:JabRef/jabref.git (fetch)
upstream        [email protected]:JabRef/jabref.git (push)

I click "Add local repository" in the UI

image

I select the directory of my project.

Then, GitButler select upstream/main as "Current target branch" and origin as "remote".

image

I think, the remote when starting the window should be the remote matching the "Current target branch".

How to reproduce

No response

Expected behavior

No response

Relevant log output

No response

koppor avatar Sep 07 '24 08:09 koppor

Thanks a lot for reporting!

You have branches from multiple remotes. If you want to specify a remote for creating branches that is different from the remote that your target branch is on, change it here.

And I agree, I think the text indicates that by default, it should match the target branch, so it can be changed if needed.

Maybe also interesting for @estib-vega .

Byron avatar Sep 08 '24 08:09 Byron