From: Keith Packard Date: Mon, 21 Jan 2013 08:15:26 +0000 (-0800) Subject: Make sure we get to the right 'packages' directory from the git hooks X-Git-Tag: telelco-v3.0~945^2~2 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=37521913122f7e8507c6f57f6de28f51cdf48ec2;p=hw%2Faltusmetrum Make sure we get to the right 'packages' directory from the git hooks The current directory set is random, so make sure we know where we're going Signed-off-by: Keith Packard --- diff --git a/.hooks/post-checkout b/.hooks/post-checkout index 8c96b33..57cd415 100755 --- a/.hooks/post-checkout +++ b/.hooks/post-checkout @@ -1,3 +1,4 @@ #!/bin/sh -cd packages && make +TOP=`git rev-parse --git-dir`/.. +cd "$TOP"/packages && make