aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/generate_version_h
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/generate_version_h')
-rwxr-xr-xsrc/scripts/generate_version_h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts/generate_version_h b/src/scripts/generate_version_h
index 993a682954b..f4705489c87 100755
--- a/src/scripts/generate_version_h
+++ b/src/scripts/generate_version_h
@@ -22,7 +22,7 @@ cat > ${1} << __EOF__
#define VPP_BUILD_DATE "$(date)"
#define VPP_BUILD_USER "$(whoami)"
#define VPP_BUILD_HOST "$(hostname)"
-#define VPP_BUILD_TOPDIR "$(git rev-parse --show-toplevel)"
+#define VPP_BUILD_TOPDIR "$(git rev-parse --show-toplevel 2> /dev/null)"
#define VPP_BUILD_VER "$(scripts/version)"
#endif
__EOF__