Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
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
abdullh.alsoleman
Front-End
Commits
3e31dbd2
Unverified
Commit
3e31dbd2
authored
May 11, 2020
by
Christopher Fujino
Committed by
GitHub
May 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ref (#56721)
parent
9bec7e90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
roll_dev.dart
dev/tools/lib/roll_dev.dart
+3
-3
roll_dev_test.dart
dev/tools/test/roll_dev_test.dart
+3
-3
No files found.
dev/tools/lib/roll_dev.dart
View file @
3e31dbd2
...
...
@@ -96,7 +96,7 @@ bool run({
git
.
run
(
'fetch
$origin
'
,
'fetch
$origin
'
);
git
.
run
(
'reset
$commit
--hard'
,
'reset to the release commit'
);
String
version
=
getFullTag
(
git
);
String
version
=
getFullTag
(
git
,
origin
);
version
=
incrementLevel
(
version
,
level
);
...
...
@@ -177,10 +177,10 @@ ArgResults parseArguments(ArgParser argParser, List<String> args) {
}
/// Obtain the version tag of the previous dev release.
String
getFullTag
(
Git
git
)
{
String
getFullTag
(
Git
git
,
String
remote
)
{
const
String
glob
=
'*.*.*-*.*.pre'
;
// describe the latest dev release
const
String
ref
=
'refs/heads
/dev'
;
final
String
ref
=
'refs/remotes/
$remote
/dev'
;
return
git
.
getOutput
(
'describe --match
$glob
--exact-match --tags
$ref
'
,
'obtain last released version number'
,
...
...
dev/tools/test/roll_dev_test.dart
View file @
3e31dbd2
...
...
@@ -136,7 +136,7 @@ void main() {
when
(
mockGit
.
getOutput
(
'remote get-url
$origin
'
,
any
)).
thenReturn
(
kUpstreamRemote
);
when
(
mockGit
.
getOutput
(
'status --porcelain'
,
any
)).
thenReturn
(
''
);
when
(
mockGit
.
getOutput
(
'describe --match *.*.*-*.*.pre --exact-match --tags refs/
heads
/dev'
,
'describe --match *.*.*-*.*.pre --exact-match --tags refs/
remotes/
$origin
/dev'
,
any
,
)).
thenReturn
(
'1.2.3-0.0.pre'
);
fakeArgResults
=
FakeArgResults
(
...
...
@@ -161,7 +161,7 @@ void main() {
when
(
mockGit
.
getOutput
(
'remote get-url
$origin
'
,
any
)).
thenReturn
(
kUpstreamRemote
);
when
(
mockGit
.
getOutput
(
'status --porcelain'
,
any
)).
thenReturn
(
''
);
when
(
mockGit
.
getOutput
(
'describe --match *.*.*-*.*.pre --exact-match --tags refs/
heads
/dev'
,
'describe --match *.*.*-*.*.pre --exact-match --tags refs/
remotes/
$origin
/dev'
,
any
,
)).
thenReturn
(
'1.2.3-0.0.pre'
);
when
(
mockGit
.
getOutput
(
'rev-parse HEAD'
,
any
)).
thenReturn
(
commit
);
...
...
@@ -188,7 +188,7 @@ void main() {
when
(
mockGit
.
getOutput
(
'remote get-url
$origin
'
,
any
)).
thenReturn
(
kUpstreamRemote
);
when
(
mockGit
.
getOutput
(
'status --porcelain'
,
any
)).
thenReturn
(
''
);
when
(
mockGit
.
getOutput
(
'describe --match *.*.*-*.*.pre --exact-match --tags refs/
heads
/dev'
,
'describe --match *.*.*-*.*.pre --exact-match --tags refs/
remotes/
$origin
/dev'
,
any
,
)).
thenReturn
(
'1.2.3-0.0.pre'
);
when
(
mockGit
.
getOutput
(
'rev-parse HEAD'
,
any
)).
thenReturn
(
commit
);
...
...
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