Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad interaction between reset/checkout and branch names that are ambiguous with file paths #1153

Open
arxanas opened this issue Dec 17, 2023 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@arxanas
Copy link
Owner

arxanas commented Dec 17, 2023

Description of the bug

Had an issue something like this:

$ mkdir -p foo/bar
$ touch foo/bar/baz
$ git add foo/bar/baz
$ git checkout -b foo/bar
$ git amend

Expected behavior

Amends normally; staging area is clean afterwards.

Actual behavior

Some warning was printed due to the implicit use of git reset, and then the staging area was not clean as expected.

Version of rustc

No response

Automated bug report

No response

Version of git-branchless

git-branchless-opts 0.8.0

Version of git

2.42.0

@arxanas arxanas added the bug Something isn't working label Dec 17, 2023
@arxanas arxanas added the good first issue Good for newcomers label Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant