vasyahuyasa / remod-sauerbraten

Lightweight mod of sauerbraten server
27 stars 15 forks source link

Updated the REMOD_VERSION flag in the makefile to use git #12

Closed Fohlen closed 9 years ago

Fohlen commented 9 years ago

Updated the REMOD_VERSION flag to show correct info from git. Alternativly we could use

git rev-list --count HEAD

to retrieve the current "commit number", although it is prefferable to use the commit hash. Using info command from IRC/ingame works fine again :+1:

vasyahuyasa commented 9 years ago

Hash version not really informative,

git clone --depth 1 https://github.com/vasyahuyasa/remod-sauerbraten.git
cd remod-sauerbraten
git rev-list --count HEAD
1
Fohlen commented 9 years ago

You did not think about your comment.

git rev-list --count HEAD

will count all commits from HEAD on. If you clone with --depth 1 this logically results in 1 commit. Hash sum is pretty informative because it is easy to find in Git/Github