From 495d5e86bca17affa334bf80c5546123842e1da3 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Sat, 5 Apr 2025 14:45:29 +0300
Subject: [PATCH 34/34] generate_gitrev.sh: Remove x-prefixing

See RM #1284

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 bootstrap/generate_gitrev.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bootstrap/generate_gitrev.sh b/bootstrap/generate_gitrev.sh
index 102fb45ee6..58a29c194b 100755
--- a/bootstrap/generate_gitrev.sh
+++ b/bootstrap/generate_gitrev.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# Freeciv - Copyright (C) 2007 - The Freeciv Project
+# Freeciv - Copyright (C) 2007-2025 - The Freeciv Project
 
 # This script generates fc_gitrev_gen.h from fc_gitrev_gen.h.tmpl.
 # See fc_gitrev_gen.h.tmpl for details.
@@ -24,8 +24,8 @@ REV2="dist"
  # (REVSTATE will be OFF)
  if command -v git >/dev/null ; then
    REVTMP="$(git rev-parse --short HEAD 2>/dev/null)"
-   if test "x$REVTMP" != "x" ; then
-     # This is git repository. Check for local modifications
+   if test "$REVTMP" != "" ; then
+     # This is a git repository. Check for local modifications
      if (cd "$SRCROOT" ; git diff --quiet); then
        REVSTATE=ON
        REV2="$REVTMP"
-- 
2.47.2

