Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
hg-git
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
hg-git
Commits
312c4bb96e68
Commit
312c4bb96e68
authored
7 years ago
by
Kevin Bullock
Browse files
Options
Downloads
Patches
Plain Diff
tests: update globs so ssh command injection tests pass on macOS
parent
3a7daf4e1cae
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/test-git-clone.t
+2
-2
2 additions, 2 deletions
tests/test-git-clone.t
tests/test-pull.t
+2
-2
2 additions, 2 deletions
tests/test-pull.t
tests/test-push.t
+2
-2
2 additions, 2 deletions
tests/test-push.t
with
6 additions
and
6 deletions
tests/test-git-clone.t
+
2
−
2
View file @
312c4bb9
...
...
@@ -51,6 +51,6 @@
abort:
potentially
unsafe
hostname:
'
-oProxyCommand=rm${IFS}nonexistent
'
[
255
]
$
hg
clone
'
git+ssh://fakehost|rm${IFS}nonexistent/path
'
2
>&
1
>
/dev/null
|
grep
-
v
^
devel
-
warn
:
ssh:
connect
to
host
fakehost
%
7
crm
%
24
%
7
bifs
%
7
dnonexistent
port
22
:
*
(
glob
)
ssh:
*
fakehost
%
7
crm
%
24
%
7
bifs
%
7
dnonexistent
*
(
glob
)
abort:
git
remote
error:
The
remote
server
unexpectedly
closed
the
connection
.
$
hg
clone
'
git+ssh://fakehost%7Crm${IFS}nonexistent/path
'
2
>&
1
>
/dev/null
|
grep
-
v
^
devel
-
warn
:
...
...
@@ -55,4 +55,4 @@
abort:
git
remote
error:
The
remote
server
unexpectedly
closed
the
connection
.
$
hg
clone
'
git+ssh://fakehost%7Crm${IFS}nonexistent/path
'
2
>&
1
>
/dev/null
|
grep
-
v
^
devel
-
warn
:
ssh:
connect
to
host
fakehost
%
7
crm
%
24
%
7
bifs
%
7
dnonexistent
port
22
:
*
(
glob
)
ssh:
*
fakehost
%
7
crm
%
24
%
7
bifs
%
7
dnonexistent
*
(
glob
)
abort:
git
remote
error:
The
remote
server
unexpectedly
closed
the
connection
.
This diff is collapsed.
Click to expand it.
tests/test-pull.t
+
2
−
2
View file @
312c4bb9
...
...
@@ -366,6 +366,6 @@
abort:
potentially
unsafe
hostname:
'
-oProxyCommand=rm nonexistent
'
[
255
]
$
hg
pull
'
git+ssh://fakehost|shellcommand/path
'
2
>&
1
>
/dev/null
|
grep
-
v
^
devel
-
warn
:
ssh:
connect
to
host
fakehost
%
7
cshellcommand
port
22
:
*
(
glob
)
ssh:
*
fakehost
%
7
cshellcommand
*
(
glob
)
abort:
git
remote
error:
The
remote
server
unexpectedly
closed
the
connection
.
$
hg
pull
'
git+ssh://fakehost%7Cshellcommand/path
'
2
>&
1
>
/dev/null
|
grep
-
v
^
devel
-
warn
:
...
...
@@ -370,4 +370,4 @@
abort:
git
remote
error:
The
remote
server
unexpectedly
closed
the
connection
.
$
hg
pull
'
git+ssh://fakehost%7Cshellcommand/path
'
2
>&
1
>
/dev/null
|
grep
-
v
^
devel
-
warn
:
ssh:
connect
to
host
fakehost
%
7
cshellcommand
port
22
:
*
(
glob
)
ssh:
*
fakehost
%
7
cshellcommand
*
(
glob
)
abort:
git
remote
error:
The
remote
server
unexpectedly
closed
the
connection
.
This diff is collapsed.
Click to expand it.
tests/test-push.t
+
2
−
2
View file @
312c4bb9
...
...
@@ -211,6 +211,6 @@
abort:
potentially
unsafe
hostname:
'
-oProxyCommand=rm nonexistent
'
[
255
]
$
hg
push
'
git+ssh://fakehost|rm%20nonexistent/path
'
2
>&
1
>
/dev/null
|
grep
-
v
^
devel
-
warn
:
ssh:
connect
to
host
fakehost
%
7
crm
%
20
nonexistent
port
22
:
*
(
glob
)
ssh:
*
fakehost
%
7
crm
%
20
nonexistent
*
(
glob
)
abort:
git
remote
error:
The
remote
server
unexpectedly
closed
the
connection
.
$
hg
push
'
git+ssh://fakehost%7Crm%20nonexistent/path
'
2
>&
1
>
/dev/null
|
grep
-
v
^
devel
-
warn
:
...
...
@@ -215,4 +215,4 @@
abort:
git
remote
error:
The
remote
server
unexpectedly
closed
the
connection
.
$
hg
push
'
git+ssh://fakehost%7Crm%20nonexistent/path
'
2
>&
1
>
/dev/null
|
grep
-
v
^
devel
-
warn
:
ssh:
connect
to
host
fakehost
%
7
crm
%
20
nonexistent
port
22
:
*
(
glob
)
ssh:
*
fakehost
%
7
crm
%
20
nonexistent
*
(
glob
)
abort:
git
remote
error:
The
remote
server
unexpectedly
closed
the
connection
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment