From: Barry Wardell Date: Mon, 21 Jan 2013 01:22:02 +0000 (+0000) Subject: git-svn: Simplify calculation of GIT_DIR X-Git-Tag: v1.8.2-rc0~83^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/bc93ceb7c5ec959ad275f575a3c49ff491337a8b?hp=bc93ceb7c5ec959ad275f575a3c49ff491337a8b git-svn: Simplify calculation of GIT_DIR Since git-rev-parse already checks for the $GIT_DIR environment variable and that it returns an actual git repository, there is no need to repeat the checks again here. This also fixes a problem where git-svn did not work in cases where .git was a file with a gitdir: link. [ew: squashed test case, delay setting GIT_DIR until after `git rev-parse --cdup` to fix t9101, (thanks to Junio)] Signed-off-by: Barry Wardell Signed-off-by: Eric Wong ---