diff options
author | James McDonnell <jmcdonnell@blackberry.com> | 2016-07-22 16:35:42 -0400 |
---|---|---|
committer | James McDonnell <jmcdonnell@blackberry.com> | 2016-09-27 13:40:59 +0000 |
commit | eb645e912dca963645caed932b9adaf184df5f57 (patch) | |
tree | 5c7c4688e1139ce0753973337cd2905d4e178e2d | |
parent | 6abc1c1c31772580480b1de1d60ed403d7a2a416 (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-x | git-hooks/git_post_commit_hook | 2 |
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 |