index_file
This commit is contained in:
parent
ea2aca161c
commit
2b59bb94b0
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,9 @@ set -eu
|
|||
|
||||
# make the GIT_DIR and GIT_INDEX_FILE absolute, before we change dir
|
||||
export GIT_DIR=$(readlink -f `git rev-parse --git-dir`)
|
||||
export GIT_INDEX_FILE=$(readlink -f `git rev-parse --git-path index`)
|
||||
if [ -n "$GIT_INDEX_FILE" ]; then
|
||||
export GIT_INDEX_FILE=$(readlink -f "$GIT_INDEX_FILE")
|
||||
fi
|
||||
|
||||
wd=`pwd`
|
||||
|
||||
|
|
Reference in a new issue