diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2023-04-06 09:27:29 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2023-04-10 11:02:12 +0100 |
| commit | d16731e445eda35192f9c338d750a773d343d59a (patch) | |
| tree | 7fc666f79a962d059d11a81129fc69828bcace0d /src | |
| parent | bd5e3082fd494429a515db55353aab64b441a166 (diff) | |
| download | libgit2-d16731e445eda35192f9c338d750a773d343d59a.tar.gz | |
push: support SHA256 refs
Diffstat (limited to 'src')
| -rw-r--r-- | src/libgit2/push.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libgit2/push.c b/src/libgit2/push.c index e25681870..8b47abc24 100644 --- a/src/libgit2/push.c +++ b/src/libgit2/push.c @@ -118,8 +118,8 @@ static int parse_refspec(git_push *push, push_spec **spec, const char *str) s = git__calloc(1, sizeof(*s)); GIT_ERROR_CHECK_ALLOC(s); - git_oid_clear(&s->loid, GIT_OID_SHA1); - git_oid_clear(&s->roid, GIT_OID_SHA1); + git_oid_clear(&s->loid, push->repo->oid_type); + git_oid_clear(&s->roid, push->repo->oid_type); if (git_refspec__parse(&s->refspec, str, false) < 0) { git_error_set(GIT_ERROR_INVALID, "invalid refspec %s", str); |
