Skip to content

git format-patch -1 sha generates first commit on log instead <sha commit> reference #274

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

Closed
kirotawa opened this issue Mar 26, 2015 · 1 comment

Comments

@kirotawa
Copy link

git.format_patch('-1 some_sha_commit') is getting the first commit in log and put it in a .patch file, but the correct is to get the commit by sha parameter, as in git command line: git format-patch -1 <sha_number>

versions tested: 0.3.6.

Is it a bug or I'm doing it wrong?

@kirotawa
Copy link
Author

It's not a bug, correct way to execute it is: git.format_patch(-1, <sha_number>,other param...)

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

No branches or pull requests

1 participant