From d2a3a8029e10ee9e07505f735af931bab616afaa Mon Sep 17 00:00:00 2001 From: "iannucci@chromium.org" Date: Sat, 5 Dec 2015 00:43:46 +0000 Subject: [PATCH] Add trivial git-bash so that it can always drop you into a bash term, even on windows. R=mattm@chromium.org, mmoss@chromium.org, vadimsh@chromium.org BUG=345142 Review URL: https://codereview.chromium.org/1496343003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@297854 0039d316-1c4b-4281-b951-d872f2087c98 --- git-bash | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 git-bash diff --git a/git-bash b/git-bash new file mode 100755 index 000000000..0a5be9321 --- /dev/null +++ b/git-bash @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# This apparently useless file enables windows users to get access to +# depot_tools' built-in bash.exe. When git executes this file as in `git bash`, +# it has bash and related tools pre-installed in the environment. Therefore even +# though 'bash' from cmd.exe doesn't work, bash here does work as you'd expect. + +bash "$@"