mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Prefer direct git installation for Windows
Bug: b/360206460 Change-Id: I7068b201b0b976ac619db16ff16d5ffbe5aea362 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5884196 Reviewed-by: Allen Li <ayatane@chromium.org> Reviewed-by: Josip Sokcevic <sokcevic@chromium.org> Commit-Queue: Anne Redulla <aredulla@google.com>
This commit is contained in:
@@ -5,8 +5,13 @@ UNIX_BASE=`cygpath "$WIN_BASE"`
|
||||
export PATH="$PATH:$UNIX_BASE/${PYTHON3_BIN_RELDIR_UNIX}:$UNIX_BASE/${PYTHON3_BIN_RELDIR_UNIX}/Scripts"
|
||||
export PYTHON_DIRECT=1
|
||||
export PYTHONUNBUFFERED=1
|
||||
|
||||
WIN_GIT_PARENT=`dirname "${GIT_BIN_ABSDIR}"`
|
||||
UNIX_GIT_PARENT=`cygpath "$WIN_GIT_PARENT"`
|
||||
BASE_GIT=`basename "${GIT_BIN_ABSDIR}"`
|
||||
UNIX_GIT="$UNIX_GIT_PARENT/$BASE_GIT"
|
||||
if [[ $# > 0 ]]; then
|
||||
$UNIX_BASE/${GIT_BIN_RELDIR_UNIX}/bin/bash.exe "$@"
|
||||
"$UNIX_GIT/bin/bash.exe" "$@"
|
||||
else
|
||||
$UNIX_BASE/${GIT_BIN_RELDIR_UNIX}/git-bash.exe &
|
||||
"$UNIX_GIT/git-bash.exe" &
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user