projects
/
hw
/
altusmetrum
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0f719c
)
Make sure we get to the right 'packages' directory from the git hooks
author
Keith Packard
<keithp@keithp.com>
Mon, 21 Jan 2013 08:15:26 +0000
(
00:15
-0800)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/.hooks/post-checkout
b/.hooks/post-checkout
index 8c96b3327248e2f0e0fe7be60edd5fc3bb44db39..57cd415a65ed9500f3026168cffbc62f4f0118f3 100755
(executable)
--- 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