Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
321d19c1
Commit
321d19c1
authored
Jan 06, 2019
by
lhchavez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows is hard.
parent
b5e8272f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
src/cc-compat.h
+3
-0
src/transports/winhttp.c
+1
-1
tests/clar_libgit2.h
+1
-1
tests/index/addall.c
+2
-2
No files found.
src/cc-compat.h
View file @
321d19c1
...
...
@@ -51,16 +51,19 @@
# if (SIZE_MAX == ULLONG_MAX)
# define PRIuZ "I64u"
# define PRIxZ "I64x"
# define PRIXZ "I64X"
# define PRIdZ "I64d"
# else
# define PRIuZ "Iu"
# define PRIxZ "Ix"
# define PRIXZ "IX"
# define PRIdZ "Id"
# endif
#else
# define PRIuZ "zu"
# define PRIxZ "zx"
# define PRIXZ "zX"
# define PRIdZ "zd"
#endif
...
...
src/transports/winhttp.c
View file @
321d19c1
...
...
@@ -631,7 +631,7 @@ static int write_chunk(HINTERNET request, const char *buffer, size_t len)
git_buf
buf
=
GIT_BUF_INIT
;
/* Chunk header */
git_buf_printf
(
&
buf
,
"%
zX
\r\n
"
,
len
);
git_buf_printf
(
&
buf
,
"%
"
PRIXZ
"
\r\n
"
,
len
);
if
(
git_buf_oom
(
&
buf
))
return
-
1
;
...
...
tests/clar_libgit2.h
View file @
321d19c1
...
...
@@ -40,7 +40,7 @@
#define cl_win32_pass(expr) do { \
int _win32_res; \
if ((_win32_res = (expr)) == 0) { \
giterr_set(GITERR_OS, "Returned: %d, system error code: %
d
", _win32_res, GetLastError()); \
giterr_set(GITERR_OS, "Returned: %d, system error code: %
lu
", _win32_res, GetLastError()); \
cl_git_report_failure(_win32_res, 0, __FILE__, __LINE__, "System call failed: " #expr); \
} \
} while(0)
...
...
tests/index/addall.c
View file @
321d19c1
...
...
@@ -123,8 +123,8 @@ static void check_stat_data(git_index *index, const char *path, bool match)
cl_assert
(
st
.
st_ctime
==
entry
->
ctime
.
seconds
);
cl_assert
(
st
.
st_mtime
==
entry
->
mtime
.
seconds
);
cl_assert
(
st
.
st_size
==
entry
->
file_size
);
cl_assert
(
st
.
st_uid
==
(
uid_t
)
entry
->
uid
);
cl_assert
(
st
.
st_gid
==
(
gid_t
)
entry
->
gid
);
cl_assert
(
(
uint32_t
)
st
.
st_uid
==
entry
->
uid
);
cl_assert
(
(
uint32_t
)
st
.
st_gid
==
entry
->
gid
);
cl_assert_equal_i_fmt
(
GIT_MODE_TYPE
(
st
.
st_mode
),
GIT_MODE_TYPE
(
entry
->
mode
),
"%07o"
);
if
(
cl_is_chmod_supported
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment