gitrev.sh: search harder for the git dir
authorSimon Schubert <corecode@dragonflybsd.org>
Sun, 16 Aug 2009 10:18:21 +0000 (12:18 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Tue, 18 Aug 2009 21:39:16 +0000 (23:39 +0200)
commitf5a0be5909f64049304cc253123a5f9e4c5f38a3
treed904a0940ff2d1e1553457a38a1b75a81073123e
parent9ce308173ae9f45c17f8f4f1dd33047501f8b8f7
gitrev.sh: search harder for the git dir

If gitrev.sh was called from an objdir, it would not be able to find the
git dir and thus fail to determine the version.  Try harder by either
using an argument as source (sub) dir, or using the path of the
gitrev.sh script itself.
tools/gitrev.sh