diff mbox series

[cip-kernel-sec] import_stable: update torvalds remote as well

Message ID 20190617025206.7753-1-daniel.sangorrin@toshiba.co.jp (mailing list archive)
State Accepted
Headers show
Series [cip-kernel-sec] import_stable: update torvalds remote as well | expand

Commit Message

Daniel Sangorrin June 17, 2019, 2:52 a.m. UTC
Otherwise, the script will not find all the expected tags
and fail with a message like:

fatal: ambiguous argument 'v5.1..torvalds/master':
unknown revision or path not in the working tree

Signed-off-by: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp>
---
 scripts/import_stable.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Ben Hutchings June 17, 2019, 8:22 p.m. UTC | #1
On Mon, 2019-06-17 at 11:52 +0900, Daniel Sangorrin wrote:
> Otherwise, the script will not find all the expected tags
> and fail with a message like:
> 
> fatal: ambiguous argument 'v5.1..torvalds/master':
> unknown revision or path not in the working tree
> 
> Signed-off-by: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp>
[...]

Applied, thanks.

Ben.
diff mbox series

Patch

diff --git a/scripts/import_stable.py b/scripts/import_stable.py
index dff3954..b3261cf 100755
--- a/scripts/import_stable.py
+++ b/scripts/import_stable.py
@@ -137,8 +137,7 @@  def add_backports(branches, c_b_map, issue_commits, all_backports,
 
 def main(git_repo, remotes, debug=False):
     branches = kernel_sec.branch.get_live_branches()
-    remote_names = set(branch['git_remote'] for branch in branches
-                       if branch['short_name'] != 'mainline')
+    remote_names = set(branch['git_remote'] for branch in branches)
 
     for remote_name in remote_names:
         update(git_repo, remotes[remote_name]['git_name'])