diff options
author | Yuang Li <yuangli88@hotmail.com> | 2022-08-31 11:09:49 +0100 |
---|---|---|
committer | Yuang Li <yuangli88@hotmail.com> | 2022-08-31 11:09:49 +0100 |
commit | a3bfd284c2d49ef148a7e12fbeb0134b5246b5e6 (patch) | |
tree | 4750d8765928701e2b115aaa76bfa8318a37bd07 /src/libgit2/repository.c | |
parent | 7c2b1f45ff02ba12544b3f81d433ee698b44127b (diff) | |
download | libgit2-a3bfd284c2d49ef148a7e12fbeb0134b5246b5e6.tar.gz |
Use GIT_OID_SHA1_HEXSIZE
Diffstat (limited to 'src/libgit2/repository.c')
-rw-r--r-- | src/libgit2/repository.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgit2/repository.c b/src/libgit2/repository.c index 6b77007aa..0eb16c223 100644 --- a/src/libgit2/repository.c +++ b/src/libgit2/repository.c @@ -3372,7 +3372,7 @@ int git_repository__shallow_roots_write(git_repository *repo, git_array_oid_t ro goto on_error; git_array_foreach(roots, idx, oid) { - git_filebuf_write(&file, git_oid_tostr_s(oid), GIT_OID_HEXSZ); + git_filebuf_write(&file, git_oid_tostr_s(oid), GIT_OID_SHA1_HEXSIZE); git_filebuf_write(&file, "\n", 1); } |