File tree 5 files changed +10
-13
lines changed
otherlibs/build-info/test
blackbox-tests/test-cases
5 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Test embedding of build information
11
11
> (package (name $ i ))
12
12
> EOF
13
13
> (cd $ i ;
14
- > git init -- initial-branch master -q
14
+ > git init -q;
15
15
> git add . ;
16
16
> git commit -q -m _;
17
17
> git tag -a 1.0 + $ i -m _)
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ generated META and opam files.
182
182
> EOF
183
183
184
184
$ (cd version
185
- > git init -- initial-branch master - q
185
+ > git init -q
186
186
> git add .
187
187
> git commit -qm _
188
188
> git tag -a 1.0 -m 1.0
@@ -217,7 +217,7 @@ generated META and opam files.
217
217
> EOF
218
218
219
219
$ (cd version
220
- > git init -- initial-branch master - q
220
+ > git init -q
221
221
> git add .
222
222
> git commit -qm _
223
223
> git tag -a 1.0 -m 1.0
Original file line number Diff line number Diff line change 1
1
This test demonstrates a bug when there's a package with a meta template and a
2
2
custom version:
3
3
4
- $ git init -- initial-branch master - q
4
+ $ git init -q
5
5
$ git add .
6
6
$ git commit -qm _
7
7
$ git tag -a 1.0 -m 1.0
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Project with opam files
14
14
15
15
$ echo ' authors: [ "John Doe <john@doe.com>" ]' > foo. opam
16
16
17
- $ git init -- initial-branch master -q
17
+ $ git init -- quiet
18
18
$ git add .
19
19
$ git commit -am _ -- quiet
20
20
$ git tag -a 1.0 -m 1.0
@@ -51,7 +51,7 @@ And without an opam file preset.
51
51
> let version = " ${ X } VERSION${ X } "
52
52
> EOF
53
53
54
- $ git init -- initial-branch master -q
54
+ $ git init -- quiet
55
55
$ git add .
56
56
$ git commit -am _ -- quiet
57
57
$ git tag -a 1.0 -m 1.0
@@ -88,7 +88,7 @@ Test subst and files with unicode (#3879)
88
88
> let version = " ${ X } VERSION${ X } "
89
89
> EOF
90
90
91
- $ git init -- initial-branch master -q
91
+ $ git init -- quiet
92
92
$ git add .
93
93
$ git commit -am _ -- quiet
94
94
$ git tag -a 1.0 -m 1.0
Original file line number Diff line number Diff line change @@ -57,10 +57,7 @@ type action =
57
57
58
58
let run_action (vcs : Vcs.t ) action =
59
59
match action with
60
- | Init -> (
61
- match vcs.kind with
62
- | Hg -> run vcs [ " init" ]
63
- | Git -> run vcs [ " init" ; " --initial-branch" ; " master" ] )
60
+ | Init -> run vcs [ " init" ; " -q" ]
64
61
| Add fn -> run vcs [ " add" ; fn ]
65
62
| Commit -> (
66
63
match vcs.kind with
@@ -150,7 +147,7 @@ let%expect_test _ =
150
147
run Git script;
151
148
[% expect
152
149
{|
153
- $ git init -- initial - branch master
150
+ $ git init - q
154
151
$ echo " -" > a
155
152
$ git add a
156
153
$ git commit - m 'commit message'
@@ -193,7 +190,7 @@ let%expect_test _ =
193
190
run Hg script;
194
191
[% expect
195
192
{|
196
- $ hg init
193
+ $ hg init - q
197
194
$ echo " -" > a
198
195
$ hg add a
199
196
$ hg commit - m 'commit message' - u toto
You can’t perform that action at this time.
0 commit comments