X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=1f4fa0052506d9b34e76973665186235cf8744d7;hp=2d9aa1d24c857a44835e66c6723e04d980865ed1;hb=b047071ec58b5367cbac179fc94e47a3d69f3ec8;hpb=59e75958079096421a679c83e2526c973038ba83 diff --git a/grml-debootstrap b/grml-debootstrap index 2d9aa1d..1f4fa00 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -41,7 +41,7 @@ fi # variables {{{ PN="$(basename "$0")" if [[ -d "$(dirname "$(command -v "$0")")"/.git ]]; then - VERSION="$(git describe | sed 's|^v||')" + VERSION="$(git --git-dir $(dirname "$(command -v "$0")")/.git describe | sed 's|^v||')" else VERSION="$(dpkg-query --show --showformat='${Version}' "$PN")" fi