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
d1317f1b
Commit
d1317f1b
authored
Jan 17, 2012
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #536 from nulltoken/fix/transport-segfault
Fix transport segfault
parents
6e03b12f
0b44c065
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/repository.c
+1
-1
src/transport.c
+1
-1
src/win32/posix_w32.c
+1
-1
No files found.
src/repository.c
View file @
d1317f1b
...
...
@@ -169,7 +169,7 @@ int git_repository_open(git_repository **repo_out, const char *path)
if
(
quickcheck_repository_dir
(
&
path_buf
)
<
GIT_SUCCESS
)
{
error
=
git__throw
(
GIT_ENOTAREPO
,
"The given path
is not a valid Git repository"
);
"The given path
(%s) is not a valid Git repository"
,
git_buf_cstr
(
&
path_buf
)
);
goto
cleanup
;
}
...
...
src/transport.c
View file @
d1317f1b
...
...
@@ -23,7 +23,7 @@ static struct {
{
NULL
,
0
}
};
#define GIT_TRANSPORT_COUNT (sizeof(transports)/sizeof(transports[0]))
#define GIT_TRANSPORT_COUNT (sizeof(transports)/sizeof(transports[0]))
- 1
static
git_transport_cb
transport_find_fn
(
const
char
*
url
)
{
...
...
src/win32/posix_w32.c
View file @
d1317f1b
...
...
@@ -80,7 +80,7 @@ static int do_lstat(const char *file_name, struct stat *buf)
buf
->
st_uid
=
0
;
buf
->
st_nlink
=
1
;
buf
->
st_mode
=
(
mode_t
)
fMode
;
buf
->
st_size
=
(
fdata
.
nFileSizeHigh
<<
32
)
+
fdata
.
nFileSizeLow
;
buf
->
st_size
=
(
(
git_off_t
)
fdata
.
nFileSizeHigh
<<
32
)
+
fdata
.
nFileSizeLow
;
buf
->
st_dev
=
buf
->
st_rdev
=
(
_getdrive
()
-
1
);
buf
->
st_atime
=
filetime_to_time_t
(
&
(
fdata
.
ftLastAccessTime
));
buf
->
st_mtime
=
filetime_to_time_t
(
&
(
fdata
.
ftLastWriteTime
));
...
...
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