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
eae77804
Unverified
Commit
eae77804
authored
Jun 04, 2020
by
Jonah Williams
Committed by
GitHub
Jun 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] use -f when fetching tags (#58703)
use -f to overwrite local tags on master branch
parent
720b7cb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
version.dart
packages/flutter_tools/lib/src/version.dart
+1
-1
version_test.dart
packages/flutter_tools/test/general.shard/version_test.dart
+2
-2
No files found.
packages/flutter_tools/lib/src/version.dart
View file @
eae77804
...
...
@@ -749,7 +749,7 @@ class GitTagVersion {
if
(
channel
==
'dev'
||
channel
==
'beta'
||
channel
==
'stable'
)
{
globals
.
printTrace
(
'Skipping request to fetchTags - on well known channel
$channel
.'
);
}
else
{
_runGit
(
'git fetch
$_flutterGit
--tags'
,
processUtils
,
workingDirectory
);
_runGit
(
'git fetch
$_flutterGit
--tags
-f
'
,
processUtils
,
workingDirectory
);
}
}
final
List
<
String
>
tags
=
_runGit
(
...
...
packages/flutter_tools/test/general.shard/version_test.dart
View file @
eae77804
...
...
@@ -573,7 +573,7 @@ void main() {
environment:
anyNamed
(
'environment'
),
)).
thenReturn
(
RunResult
(
ProcessResult
(
108
,
0
,
'master'
,
''
),
<
String
>[
'git'
,
'fetch'
]));
when
(
processUtils
.
runSync
(
<
String
>[
'git'
,
'fetch'
,
'https://github.com/flutter/flutter.git'
,
'--tags'
],
<
String
>[
'git'
,
'fetch'
,
'https://github.com/flutter/flutter.git'
,
'--tags'
,
'-f'
],
workingDirectory:
anyNamed
(
'workingDirectory'
),
environment:
anyNamed
(
'environment'
),
)).
thenReturn
(
RunResult
(
ProcessResult
(
109
,
0
,
''
,
''
),
<
String
>[
'git'
,
'fetch'
]));
...
...
@@ -599,7 +599,7 @@ void main() {
environment:
anyNamed
(
'environment'
),
)).
called
(
1
);
verify
(
processUtils
.
runSync
(
<
String
>[
'git'
,
'fetch'
,
'https://github.com/flutter/flutter.git'
,
'--tags'
],
<
String
>[
'git'
,
'fetch'
,
'https://github.com/flutter/flutter.git'
,
'--tags'
,
'-f'
],
workingDirectory:
anyNamed
(
'workingDirectory'
),
environment:
anyNamed
(
'environment'
),
)).
called
(
1
);
...
...
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