You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/git-cl

19 lines
525 B
Bash

#!/bin/sh
# Copyright (c) 2009 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.
base_dir=$(dirname "$0")
url="http://src.chromium.org/git/git-cl.git"
cur_url=$(git config -f "$base_dir/git-cl-repo/.git/config" remote.origin.url)
if [ "$cur_url" != "$url" ]; then
rm -rf $base_dir/git-cl-repo
fi
if [ ! -f "$base_dir/git-cl-repo/git-cl" ]; then
git clone $url $base_dir/git-cl-repo -q
fi
$base_dir/git-cl-repo/git-cl "$@"