Commit 5fa2e4cb by Edward Thomson

reset: support SHA256

parent 6238d81c
...@@ -188,9 +188,9 @@ int git_reset( ...@@ -188,9 +188,9 @@ int git_reset(
git_reset_t reset_type, git_reset_t reset_type,
const git_checkout_options *checkout_opts) const git_checkout_options *checkout_opts)
{ {
char to[GIT_OID_SHA1_HEXSIZE + 1]; char to[GIT_OID_MAX_HEXSIZE + 1];
git_oid_tostr(to, GIT_OID_SHA1_HEXSIZE + 1, git_object_id(target)); git_oid_tostr(to, GIT_OID_MAX_HEXSIZE + 1, git_object_id(target));
return reset(repo, target, to, reset_type, checkout_opts); return reset(repo, target, to, reset_type, checkout_opts);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment