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
7e0f5a6a
Commit
7e0f5a6a
authored
Oct 22, 2019
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smart protocol: correct case in error messages
parent
2d6a61bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/transports/smart_protocol.c
+4
-4
No files found.
src/transports/smart_protocol.c
View file @
7e0f5a6a
...
@@ -371,7 +371,7 @@ int git_smart__negotiate_fetch(git_transport *transport, git_repository *repo, c
...
@@ -371,7 +371,7 @@ int git_smart__negotiate_fetch(git_transport *transport, git_repository *repo, c
}
else
if
(
pkt_type
==
GIT_PKT_NAK
)
{
}
else
if
(
pkt_type
==
GIT_PKT_NAK
)
{
continue
;
continue
;
}
else
{
}
else
{
git_error_set
(
GIT_ERROR_NET
,
"
U
nexpected pkt type"
);
git_error_set
(
GIT_ERROR_NET
,
"
u
nexpected pkt type"
);
error
=
-
1
;
error
=
-
1
;
goto
on_error
;
goto
on_error
;
}
}
...
@@ -439,7 +439,7 @@ int git_smart__negotiate_fetch(git_transport *transport, git_repository *repo, c
...
@@ -439,7 +439,7 @@ int git_smart__negotiate_fetch(git_transport *transport, git_repository *repo, c
return
error
;
return
error
;
if
(
pkt_type
!=
GIT_PKT_ACK
&&
pkt_type
!=
GIT_PKT_NAK
)
{
if
(
pkt_type
!=
GIT_PKT_ACK
&&
pkt_type
!=
GIT_PKT_NAK
)
{
git_error_set
(
GIT_ERROR_NET
,
"
U
nexpected pkt type"
);
git_error_set
(
GIT_ERROR_NET
,
"
u
nexpected pkt type"
);
return
-
1
;
return
-
1
;
}
}
}
else
{
}
else
{
...
@@ -460,7 +460,7 @@ static int no_sideband(transport_smart *t, struct git_odb_writepack *writepack,
...
@@ -460,7 +460,7 @@ static int no_sideband(transport_smart *t, struct git_odb_writepack *writepack,
do
{
do
{
if
(
t
->
cancelled
.
val
)
{
if
(
t
->
cancelled
.
val
)
{
git_error_set
(
GIT_ERROR_NET
,
"
T
he fetch was cancelled by the user"
);
git_error_set
(
GIT_ERROR_NET
,
"
t
he fetch was cancelled by the user"
);
return
GIT_EUSER
;
return
GIT_EUSER
;
}
}
...
@@ -831,7 +831,7 @@ static int parse_report(transport_smart *transport, git_push *push)
...
@@ -831,7 +831,7 @@ static int parse_report(transport_smart *transport, git_push *push)
if
(
data_pkt_buf
.
size
>
0
)
{
if
(
data_pkt_buf
.
size
>
0
)
{
/* If there was data remaining in the pack data buffer,
/* If there was data remaining in the pack data buffer,
* then the server sent a partial pkt-line */
* then the server sent a partial pkt-line */
git_error_set
(
GIT_ERROR_NET
,
"
I
ncomplete pack data pkt-line"
);
git_error_set
(
GIT_ERROR_NET
,
"
i
ncomplete pack data pkt-line"
);
error
=
GIT_ERROR
;
error
=
GIT_ERROR
;
}
}
goto
done
;
goto
done
;
...
...
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