diff --git a/git-cl b/git-cl index 4c568f7b6..2d9ac3042 100755 --- a/git-cl +++ b/git-cl @@ -4,7 +4,7 @@ # found in the LICENSE file. base_dir=$(dirname "$0") -repo="$base_dir/git-cl-repo" +repo="$base_dir/git_cl_repo" url="http://src.chromium.org/git/git-cl.git" cur_url=$(git config -f "$repo/.git/config" remote.origin.url) @@ -26,10 +26,10 @@ fi if [ ! -f "$repo/git-cl" ]; then git clone $url $repo -q -elif [ ! -e "$base_dir/git-cl-repo/.git" ]; then - echo "$0: $base_dir/git-cl-repo does not appear to be a git repo" +elif [ ! -e "$repo/.git" ]; then + echo "$0: $repo does not appear to be a git repo" elif [ "X$DEPOT_TOOLS_UPDATE" != "X0" ]; then - (cd "$base_dir/git-cl-repo"; git pull -q) + (cd "$repo"; git pull -q) fi $repo/git-cl "$@"