Code

Documentation: quote {non-attributes} for asciidoc
[git.git] / git-filter-branch.sh
index 8fa5ce6467b12119868a4c3c74c3e3740f6d6b8e..a2fcebc1c63082db03445b65e340286d0c129903 100644 (file)
@@ -312,9 +312,10 @@ case "$GIT_DIR" in
 /*)
        ;;
 *)
-       export GIT_DIR="$(pwd)/../../$GIT_DIR"
+       GIT_DIR="$(pwd)/../../$GIT_DIR"
        ;;
 esac
+export GIT_DIR GIT_WORK_TREE=.
 
 export GIT_INDEX_FILE="$(pwd)/../index"
 git-read-tree # seed the index file