Skip to content

[BUG?] Commit message gets added to branch name #15

@bhidalgo-apolitical

Description

@bhidalgo-apolitical

I've recently updated to the latest available version 1.6.1 of the CLI, and since then, when creating a branch the custom name is not being kept by the CLI.

Prior to that I was on version 1.5.3 and the creation of branches was working as expected. I'll add a clearer example now:

Using version 1.6.1

Image

My commit message is "test" and gets added as a prefix for my branch, and that can't be disabled. Using gt config I was able to remove the date as the prefix, but there's no way to disable this behaviour which is quite annoying.

It's also important to note that in some scenarios it may even be a breaking change, as people may be relying on branch names to execute certain parts of their CI, or even to run pre-push hooks and this alone can break a whole company setup. The only work around this is to run gt rename for each branch you create, which is super annoying.

Using version 1.5.3

As I mentioned before, if I were to use an older version and run gt create like this:

gt create -am "test" 000-my-branch

I'll see a branch named 000-my-branch created, as one would expect.

Current CLI version

> gt --version
1.6.1

So is this something expected on this version and am I missing some configs to avoid this behaviour? Or is it a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions