aboutsummaryrefslogtreecommitdiff
path: root/git-filter-branch.sh
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2007-08-11 15:36:28 +0200
committerJunio C Hamano <gitster@pobox.com>2007-08-13 21:19:48 -0700
commitb2bc9a30981ace8c18d1a73b3e10153efc5c20f7 (patch)
tree4c8cceb653e27c2b5d089a5f279647ec8b25c5f3 /git-filter-branch.sh
parent0476786e645ae18096d6a63de5fd4b756071b522 (diff)
downloadgit-b2bc9a30981ace8c18d1a73b3e10153efc5c20f7.tar.gz
git-b2bc9a30981ace8c18d1a73b3e10153efc5c20f7.tar.xz
git-sh-setup.sh: make GIT_DIR absolute
Quite a few of the scripts are rather careless about using GIT_DIR while changing directories. Some try their hands (with different likelihood of success) in making GIT_DIR absolute. This patch lets git-sh-setup.sh cater for absolute directories (in a way that should work reliably also with non-Unix path names) and removes the respective kludges in git-filter-branch.sh and git-instaweb.sh. Signed-off-by: David Kastrup <dak@gnu.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-filter-branch.sh')
-rwxr-xr-xgit-filter-branch.sh7
1 files changed, 0 insertions, 7 deletions
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index b5fa44920..c42e4512c 100755
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
@@ -170,13 +170,6 @@ do
esac
done < "$tempdir"/backup-refs
-case "$GIT_DIR" in
-/*)
- ;;
-*)
- GIT_DIR="$(pwd)/../../$GIT_DIR"
- ;;
-esac
export GIT_DIR GIT_WORK_TREE=.
# These refs should be updated if their heads were rewritten