We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Create a git repository. Change the filesystem permissions to prevent writes to the .git/objects/?? files.
chmod a-w .git/objects .git/objects/??
Try committing. The commit fails with an error message.
Err: No changes staged for commit.
But, the exit code is 0, which would cause an automated script to assume that the commit succeeded.
$ echo $? 0
The text was updated successfully, but these errors were encountered:
b5299da
Oops.. commit ID referenced the wrong issue.
Sorry, something went wrong.
Actually, wait, no, that did fix it.
It dies in weird ways now, (claims "Invalid tree"), but the real git client dies in weird ways too (claims "not a git repository")
No branches or pull requests
Create a git repository. Change the filesystem permissions to prevent writes to the .git/objects/?? files.
Try committing. The commit fails with an error message.
But, the exit code is 0, which would cause an automated script to assume that the commit succeeded.
The text was updated successfully, but these errors were encountered: