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
610ea06d48c5
Commit
610ea06d48c5
authored
3 years ago
by
Dan Villiom Podlaski Christiansen
Browse files
Options
Downloads
Patches
Plain Diff
tests: make git protocol test more focused
parent
f1851e3df801
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!127
Remove some unnecessary caching
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test-serve-git.t
+7
-8
7 additions, 8 deletions
tests/test-serve-git.t
with
7 additions
and
8 deletions
tests/test-serve-git.t
+
7
−
8
View file @
610ea06d
...
...
@@ -3,9 +3,10 @@
Load
commonly
used
test
logic
$
.
"
$TESTDIR
/testutil
"
$
git
init
test
Initialized
empty
Git
repository
in
$TESTTMP
/test/
.
git
/
Create
a
dummy
repository
and
serve
it
$
git
init
-
q test
$
cd
test
$
echo
foo
>
foo
$
git
add
foo
$
fn_git_commit
-
m test
...
...
@@ -8,9 +9,8 @@
$
cd
test
$
echo
foo
>
foo
$
git
add
foo
$
fn_git_commit
-
m test
$
cd
$TESTTMP
$
git
daemon
--
listen
=
localhost
--
port
=
$HGPORT
\
>
--
pid
-
file
=
$DAEMON_PIDS
--
detach
--
export
-
all
--
verbose
\
>
--
base
-
path
=
$TESTTMP
\
>
||
exit
80
...
...
@@ -13,7 +13,8 @@
$
git
daemon
--
listen
=
localhost
--
port
=
$HGPORT
\
>
--
pid
-
file
=
$DAEMON_PIDS
--
detach
--
export
-
all
--
verbose
\
>
--
base
-
path
=
$TESTTMP
\
>
||
exit
80
$
cd
..
Make
sure
that
clone
over
the
old
git
protocol
doesn
'
t break
...
...
@@ -17,5 +18,5 @@
Make
sure
that
clone
over
the
old
git
protocol
doesn
'
t break
$ hg clone git://localhost:$HGPORT/test copy 2>&1
$ hg clone
-U
git://localhost:$HGPORT/test copy 2>&1
importing git objects into hg
...
...
@@ -21,5 +22,3 @@
importing git objects into hg
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ ls copy
foo
$ hg id -r tip copy
c4d188f6e13d default/master/tip master
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