Commit 14fc473a by Edward Thomson

branch: support sha256 OIDs for branch refs

parent 440b1995
...@@ -134,9 +134,9 @@ int git_branch_create( ...@@ -134,9 +134,9 @@ int git_branch_create(
const git_commit *commit, const git_commit *commit,
int force) int force)
{ {
char commit_id[GIT_OID_SHA1_HEXSIZE + 1]; char commit_id[GIT_OID_MAX_HEXSIZE + 1];
git_oid_tostr(commit_id, GIT_OID_SHA1_HEXSIZE + 1, git_commit_id(commit)); git_oid_tostr(commit_id, GIT_OID_MAX_HEXSIZE + 1, git_commit_id(commit));
return create_branch(ref_out, repository, branch_name, commit, commit_id, force); return create_branch(ref_out, repository, branch_name, commit, commit_id, force);
} }
......
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