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
bf7d2761
Commit
bf7d2761
authored
Jul 01, 2015
by
Edward Thomson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3280 from linquize/8.3
Fix 8.3 filename tests failure when 8.3 is disabled
parents
34065968
526f91f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
src/repository.c
+4
-1
No files found.
src/repository.c
View file @
bf7d2761
...
...
@@ -867,7 +867,9 @@ static int reserved_names_add8dot3(git_repository *repo, const char *path)
{
char
*
name
=
git_win32_path_8dot3_name
(
path
);
const
char
*
def
=
GIT_DIR_SHORTNAME
;
const
char
*
def_dot_git
=
DOT_GIT
;
size_t
name_len
,
def_len
=
CONST_STRLEN
(
GIT_DIR_SHORTNAME
);
size_t
def_dot_git_len
=
CONST_STRLEN
(
DOT_GIT
);
git_buf
*
buf
;
if
(
!
name
)
...
...
@@ -875,7 +877,8 @@ static int reserved_names_add8dot3(git_repository *repo, const char *path)
name_len
=
strlen
(
name
);
if
(
name_len
==
def_len
&&
memcmp
(
name
,
def
,
def_len
)
==
0
)
{
if
((
name_len
==
def_len
&&
memcmp
(
name
,
def
,
def_len
)
==
0
)
||
(
name_len
==
def_dot_git_len
&&
memcmp
(
name
,
def_dot_git
,
def_dot_git_len
)
==
0
))
{
git__free
(
name
);
return
0
;
}
...
...
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