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
8c29dca6
Commit
8c29dca6
authored
Feb 11, 2013
by
Philip Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some incorrect MSVC #ifdef's. Fixes #1305
parent
a150cc87
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/path.c
+1
-1
tests-clar/clar_libgit2.c
+1
-1
tests-clar/core/path.c
+1
-1
No files found.
src/path.c
View file @
8c29dca6
...
...
@@ -400,7 +400,7 @@ int git_path_fromurl(git_buf *local_path_out, const char *file_url)
if
(
offset
>=
len
||
file_url
[
offset
]
==
'/'
)
return
error_invalid_local_file_uri
(
file_url
);
#ifndef
_MSC_VER
#ifndef
GIT_WIN32
offset
--
;
/* A *nix absolute path starts with a forward slash */
#endif
...
...
tests-clar/clar_libgit2.c
View file @
8c29dca6
...
...
@@ -238,7 +238,7 @@ const char* cl_git_path_url(const char *path)
cl_git_pass
(
git_path_prettify_dir
(
&
path_buf
,
path
,
NULL
));
cl_git_pass
(
git_buf_puts
(
&
url_buf
,
"file://"
));
#ifdef
_MSC_VER
#ifdef
GIT_WIN32
/*
* A FILE uri matches the following format: file://[host]/path
* where "host" can be empty and "path" is an absolute path to the resource.
...
...
tests-clar/core/path.c
View file @
8c29dca6
...
...
@@ -324,7 +324,7 @@ static void check_fromurl(const char *expected_result, const char *input, int sh
git_buf_free
(
&
buf
);
}
#ifdef
_MSC_VER
#ifdef
GIT_WIN32
#define ABS_PATH_MARKER ""
#else
#define ABS_PATH_MARKER "/"
...
...
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