summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-02-10 14:16:08 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2023-02-13 10:27:13 +0000
commite7a7691146f3ce1b85e3f79be4fe40745973ffe9 (patch)
treebdf00a356f408c3a4c56ad45bdcbd5dbc3bfe5ce /tests
parentd63f1fe2457edbcdae7e20f1c1e4b75fbff8354e (diff)
downloadlibgit2-e7a7691146f3ce1b85e3f79be4fe40745973ffe9.tar.gz
win32: adjust max path length for SHA256
The longest path within a git repository is now a SHA256 format packfile. Adjust our max length checking to match.
Diffstat (limited to 'tests')
-rw-r--r--tests/libgit2/repo/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libgit2/repo/init.c b/tests/libgit2/repo/init.c
index 637d4a903..d78ec063c 100644
--- a/tests/libgit2/repo/init.c
+++ b/tests/libgit2/repo/init.c
@@ -727,7 +727,7 @@ void test_repo_init__defaultbranch_config_empty(void)
void test_repo_init__longpath(void)
{
#ifdef GIT_WIN32
- size_t padding = CONST_STRLEN("objects/pack/pack-.pack.lock") + GIT_OID_SHA1_HEXSIZE;
+ size_t padding = CONST_STRLEN("objects/pack/pack-.pack.lock") + GIT_OID_MAX_HEXSIZE;
size_t max, i;
git_str path = GIT_STR_INIT;
git_repository *one = NULL, *two = NULL;