mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 02:31:29 +00:00
I believe Git will try to run the file without extension (this bash file) directly, which causes issues. Bug: 410753790 Change-Id: I3a43dfd84e6459f64a023d3c656d8d3ff3b7bd5e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6463456 Commit-Queue: Allen Li <ayatane@chromium.org> Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
21 lines
547 B
Bash
Executable File
21 lines
547 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright 2024 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.
|
|
|
|
# See revert instructions in cipd_manifest.txt
|
|
|
|
# In git bash on Windows, invoke the batch file.
|
|
if [ "$(expr "$(uname -s)" : "^MINGW64_NT")" == "10" ]; then
|
|
git-credential-luci.bat "$@"
|
|
exit
|
|
fi
|
|
|
|
MYPATH=$(dirname "${BASH_SOURCE[0]}")
|
|
|
|
source "$MYPATH/cipd_bin_setup.sh"
|
|
CIPD_ROOT=$(cipd_bin_setup) &> /dev/null
|
|
|
|
exec "$CIPD_ROOT/git-credential-luci" "$@"
|