Make sure we get to the right 'packages' directory from the git hooks
authorKeith Packard <keithp@keithp.com>
Mon, 21 Jan 2013 08:15:26 +0000 (00:15 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 21 Jan 2013 08:22:09 +0000 (00:22 -0800)
The current directory set is random, so make sure we know where we're going

Signed-off-by: Keith Packard <keithp@keithp.com>
.hooks/post-checkout

index 8c96b3327248e2f0e0fe7be60edd5fc3bb44db39..57cd415a65ed9500f3026168cffbc62f4f0118f3 100755 (executable)
@@ -1,3 +1,4 @@
 #!/bin/sh
 
-cd packages && make
+TOP=`git rev-parse --git-dir`/..
+cd "$TOP"/packages && make