From 9b6c9e6630a555a01bbc05072386199ab8762184 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 20 Jun 2022 10:43:30 +0200 Subject: [PATCH] litex_setup: Switch to specific branch when initializing repositories. --- litex_setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litex_setup.py b/litex_setup.py index d150df0cc..c030770fe 100755 --- a/litex_setup.py +++ b/litex_setup.py @@ -212,6 +212,8 @@ def litex_setup_init_repos(config="standard", tag=None, dev_mode=False): options = "--recursive" if repo.clone == "recursive" else "" ), shell=True) os.chdir(os.path.join(current_path, name)) + # Use specific Branch. + subprocess.check_call("git checkout " + repo.branch, shell=True) # Use specific Tag (Optional). if repo.tag is not None: # Priority to passed tag (if specified).