Skip to content

Commit e7a7691

Browse files
committed
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.
1 parent d63f1fe commit e7a7691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/libgit2/repo/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ void test_repo_init__defaultbranch_config_empty(void)
727727
void test_repo_init__longpath(void)
728728
{
729729
#ifdef GIT_WIN32
730-
size_t padding = CONST_STRLEN("objects/pack/pack-.pack.lock") + GIT_OID_SHA1_HEXSIZE;
730+
size_t padding = CONST_STRLEN("objects/pack/pack-.pack.lock") + GIT_OID_MAX_HEXSIZE;
731731
size_t max, i;
732732
git_str path = GIT_STR_INIT;
733733
git_repository *one = NULL, *two = NULL;

0 commit comments

Comments
 (0)