summaryrefslogtreecommitdiff
path: root/t/t5310-pack-bitmaps.sh
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-06-08 09:37:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-10 19:00:53 (GMT)
commitc0562611c525bb3c564b79c345fc7e4f9e799e54 (patch)
treebb3e755cde8b269e23f0db2cdb4cafa63deb9fc3 /t/t5310-pack-bitmaps.sh
parente156455ea49124c140a67623f22a393db62d5d98 (diff)
downloadgit-c0562611c525bb3c564b79c345fc7e4f9e799e54.zip
git-c0562611c525bb3c564b79c345fc7e4f9e799e54.tar.gz
git-c0562611c525bb3c564b79c345fc7e4f9e799e54.tar.bz2
git potty: restore environments after alias expansion
Commit 4ad8332 (t0001: test git init when run via an alias - 2010-11-26) noted breakages when running init via alias. The problem is for alias to be used, $GIT_DIR must be searched, but 'init' and 'clone' are not happy with that. So we start a new process like an external command, with clean environment in this case. Env variables that are set by command line (e.g. "git --git-dir=.. ") are kept. This should also fix autocorrecting a command typo to "init" because it's the same problem: aliases are read, then "init" is unhappy with $GIT_DIR already set up because of that. Reminded-by: David Turner <dturner@twopensource.com> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5310-pack-bitmaps.sh')
0 files changed, 0 insertions, 0 deletions