Subject: Re: [PATCH] setup_git_directory: Setup cwd properly if worktree is found

From: Johannes Sixt <[email-masked]>
Date: Mon, 12 Nov 2007 13:53:49 +0100

Nguyễn Thái Ngọc Duy schrieb:
> +export SAVED_WORK_DIR=$(pwd)/work
> +export GIT_DIR="$(pwd)"/repo.git
> +export GIT_CONFIG="$GIT_DIR"/config
> +export GIT_WORK_TREE="$(pwd)"/work

These are not very portable; use:

    GIT_DIR="$(pwd)"/repo.git
    GIT_CONFIG="$GIT_DIR"/config
    GIT_WORK_TREE="$(pwd)"/work
    export GIT_DIR GIT_CONFIG GIT_WORK_TREE

The first one also needs $(pwd) quoted.

-- Hannes