summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3270736)
raw | patch | inline | side by side (parent: 3270736)
author | Matthias Lederhofer <matled@gmx.net> | |
Wed, 6 Jun 2007 07:16:56 +0000 (09:16 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 6 Jun 2007 23:08:37 +0000 (16:08 -0700) |
Currently filter-branch exports GIT_DIR only if it is an
relative path but git-sh-setup might also set GIT_DIR to an
absolute path that is not exported yet. Additionally export
GIT_WORK_TREE with GIT_DIR to ensure that cwd is used as
working tree even for bare repositories.
Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
relative path but git-sh-setup might also set GIT_DIR to an
absolute path that is not exported yet. Additionally export
GIT_WORK_TREE with GIT_DIR to ensure that cwd is used as
working tree even for bare repositories.
Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-filter-branch.sh | [changed mode: 0755->0644] | patch | blob | history |
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
/*)
;;
*)
- 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