From cbf2cb1a49467e5b3ea7d8e1b8db79308e1e06fd Mon Sep 17 00:00:00 2001 From: "Adrien M. BERNEDE" Date: Mon, 27 Feb 2023 11:36:06 +0100 Subject: [PATCH] Fix wrong syntax --- lib/spack/spack/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/version.py b/lib/spack/spack/version.py index c074b427306..d957569f32e 100644 --- a/lib/spack/spack/version.py +++ b/lib/spack/spack/version.py @@ -1338,7 +1338,7 @@ def lookup_ref(self, ref): # We need to do an attempt at fetching the commit in order to # be sure to get it in case it comes from a PR in a fork. - self.fetcher.git("fetch", "origin", "%s^{commit}" % ref, output=os.devnull, error=os.devnull) + self.fetcher.git("fetch", "origin", "%s" % ref, output=os.devnull, error=os.devnull) # Ensure ref is a commit object known to git # Note the brackets are literals, the ref replaces the format string