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

Fix the acidhub prompt for a commitless repository #10462

Merged
merged 2 commits into from May 2, 2024

Conversation

ClaXXX
Copy link
Contributor

@ClaXXX ClaXXX commented Apr 26, 2024

Description

Deletes the error message generated by git when comparing indexes for a commitless repository and print '-' as the branch name.

To test:

 mkdir test && pushd test
git init

fatal: bad revision 'HEAD' is then printed in front of the prompt after each command execution as long as the current directory is the one we just created (test).

TODOs:

  • Changes to fish usage are reflected in user documentation/manpages.
  • Tests have been added for regressions fixed
  • User-visible changes noted in CHANGELOG.rst

claxbot and others added 2 commits April 26, 2024 20:29
Deletes the error message generated by git when comparing indexes for a
commitless repository and print '-' as the branch name
@faho faho added the bug Something that's not working as intended label May 2, 2024
@faho faho added this to the fish next-3.x milestone May 2, 2024
@faho faho merged commit 0116dc5 into fish-shell:master May 2, 2024
4 of 7 checks passed
@faho
Copy link
Member

faho commented May 2, 2024

Thanks!

(in future, please don't back-merge master, it only messes up the later merge. if you need to pull in new commits, rebase and force-push to your branch instead)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that's not working as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants