summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames McDonnell <jmcdonnell@blackberry.com>2016-07-22 16:35:42 -0400
committerJames McDonnell <jmcdonnell@blackberry.com>2016-09-27 13:40:59 +0000
commiteb645e912dca963645caed932b9adaf184df5f57 (patch)
tree5c7c4688e1139ce0753973337cd2905d4e178e2d
parent6abc1c1c31772580480b1de1d60ed403d7a2a416 (diff)
Fix hand-crafted symlink resolution
The base directory for making the symlink target absolute is of course the dirname of the original file, not the target itself. Change-Id: Ide12b77a724aa9f1fcb2512cbd0ada2a98f44303 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
-rwxr-xr-xgit-hooks/git_post_commit_hook2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/git_post_commit_hook b/git-hooks/git_post_commit_hook
index 6550d92..2a0a0ca 100755
--- a/git-hooks/git_post_commit_hook
+++ b/git-hooks/git_post_commit_hook
@@ -32,8 +32,8 @@ if test -L "$me"; then
me=$nme
else
# No GNU readlink(1), so let's try ls -l
- me=`ls -l "$me" | sed 's/^.*-> //'`
base=`dirname "$me"`
+ me=`ls -l "$me" | sed 's/^.*-> //'`
me=`makeAbsolute "$me" "$base"`
fi
fi