# Removing \_GIT\_ from build information

**URL:** <https://discourse.ioquake.org/t/removing--git--from-build-information/891>\
**Category:** dev\
**Created:** [May 29, 2017, 5:08am UTC](https://discourse.ioquake.org/t/removing--git--from-build-information/891 "2017-05-29T05:08:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sentry](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@sentry](https://discourse.ioquake.org/u/sentry)\
**Post date:** [May 29, 2017, 5:08am UTC](https://discourse.ioquake.org/t/removing--git--from-build-information/891/1 "2017-05-29T05:08:39Z")

</div>

My server returns the following for its version: ioq3 1.36\_GIT\_c65d2c2-2017-04-28 linux-x86\_64 May 15 2017

I’d much rather have it remove the GIT information from it and just simply display: ioq3 1.36 linux-x86\_64 May 15 2017

I’ve removed the following from the Makefile. But, it’s still showing up when I compile it.

```auto
# Add git version info
USE_GIT=
ifeq ($(wildcard .git),.git)
  GIT_REV=$(shell git show -s --pretty=format:%h-%ad --date=short)
  ifneq ($(GIT_REV),)
    VERSION:=$(VERSION)_GIT_$(GIT_REV)
    USE_GIT=1
  endif
endif

```

Not sure why it’s showing May 15 either. I’ve modified the source code and recompiled it every day since then. Is the version cached somewhere that it’s displaying the old information and not the updated one with the proper date and removal of GIT info?

---

<div class="post-metadata">

**Author:** ![zturtleman](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.ioquake.org/zturtleman/32/718_2.png) [@zturtleman](https://discourse.ioquake.org/u/zturtleman)\
**Post date:** [May 29, 2017, 2:29pm UTC](https://discourse.ioquake.org/t/removing--git--from-build-information/891/2 "2017-05-29T14:29:00Z")

</div>

Open and save code/qcommon/common.c and code/client/cl\_console.c so the version updates.

---

<div class="post-metadata">

**Author:** ![sentry](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@sentry](https://discourse.ioquake.org/u/sentry)\
**Post date:** [May 29, 2017, 6:29pm UTC](https://discourse.ioquake.org/t/removing--git--from-build-information/891/3 "2017-05-29T18:29:25Z")

</div>

Perfect. Thank you!

I added the following lines to my shell script before running make to have the version update each time:

touch /home/q3/ioq3/code/qcommon/common.c  
touch /home/q3/ioq3/code/client/cl\_console.c
