From 154059126c9efd4b5040f038af01d835858cb8a6 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 23 Sep 2024 09:16:24 +0200 Subject: [PATCH] Update build-all.py - `reset --hard` before checkout --- nix/build-all.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nix/build-all.py b/nix/build-all.py index 211a03472d..95788ce939 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -351,6 +351,7 @@ def git_clone_or_pull_repository(clone_url, target_dir, revision=None): run([git, "pull", clone_url], cwd=target_dir) if revision != None: + run([git, "reset", "--hard"], cwd=target_dir) run([git, "fetch", "--all"], cwd=target_dir) run([git, "checkout", revision], cwd=target_dir)