diff --git a/litex_setup.py b/litex_setup.py index 3b84e2ae0..4c2167f80 100755 --- a/litex_setup.py +++ b/litex_setup.py @@ -136,7 +136,7 @@ if "init" in sys.argv[1:]: subprocess.check_call("git clone " + full_url + " " + opts, shell=True) if sha1 is not None: os.chdir(os.path.join(current_path, name)) - os.system("git checkout {:040x}".format(sha1)) + os.system("git checkout {:07x}".format(sha1)) # Repositories update if "update" in sys.argv[1:]: @@ -155,7 +155,7 @@ if "update" in sys.argv[1:]: subprocess.check_call("git submodule update --init --recursive", shell=True) if sha1 is not None: os.chdir(os.path.join(current_path, name)) - os.system("git checkout {:040x}".format(sha1)) + os.system("git checkout {:07x}".format(sha1)) # Repositories installation if "install" in sys.argv[1:]: