OLD | NEW |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 base_dir=$(dirname "$0") | 6 base_dir=$(dirname "$0") |
7 url="http://src.chromium.org/git/git-cl.git" | |
M-A Ruel
2009/11/18 00:13:58
This is cool but somewhat aggressive, especially w
| |
8 cur_url=$(git config -f "$base_dir/git-cl-repo/.git/config" remote.origin.url) | |
9 | |
10 if [ "$cur_url" != "$url" ]; then | |
11 rm -rf $base_dir/git-cl-repo | |
12 fi | |
7 | 13 |
8 if [ ! -f "$base_dir/git-cl-repo/git-cl" ]; then | 14 if [ ! -f "$base_dir/git-cl-repo/git-cl" ]; then |
9 git clone git://neugierig.org/git-cl.git $base_dir/git-cl-repo -q | 15 git clone $url $base_dir/git-cl-repo -q |
10 fi | 16 fi |
11 | 17 |
12 $base_dir/git-cl-repo/git-cl "$@" | 18 $base_dir/git-cl-repo/git-cl "$@" |
OLD | NEW |