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

Warning during rebase #21

Closed
dbburgess opened this issue Oct 2, 2015 · 2 comments
Closed

Warning during rebase #21

dbburgess opened this issue Oct 2, 2015 · 2 comments

Comments

@dbburgess
Copy link

If you make (or amend) any commits during an interactive rebase, you receive the following warning:

fatal: ref HEAD is not a symbolic ref
fit-commit: WARNING: Skipping checks because the Git branch cannot be determined.

Steps to reproduce:

  1. git rebase -i HEAD~1
  2. Change pick to edit for the commit shown
  3. git commit --amend (no need to change anything)
  4. Observe the warning.

It doesn't seem to cause any negative side-effects, aside from not actually catching any invalid commit messages.

@m1foley
Copy link
Owner

m1foley commented Oct 10, 2015

Thanks for the report and easy steps to recreate.

Since this is a common scenario and not an error case, Fit Commit no longer aborts if the branch name is undetermined.

@dbburgess
Copy link
Author

Awesome, thanks for the fix. It works great. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants