Subject: Re: Teach "git checkout" to use git-show-ref

From: Jakub Narebski <[email-masked]>
Date: Sat, 16 Sep 2006 00:11:38 +0200

Linus Torvalds wrote:

> @@ -51,7 +51,7 @@ while [ "$#" != "0" ]; do
>                         fi
>                         new="$rev"
>                         new_name="$arg^0"
> -                       if [ -f "$GIT_DIR/refs/heads/$arg" ]; then
> +                       if git-show-ref --verify --quiet -- "refs/heads/$arg" ]; then
  +                       if git-show-ref --verify --quiet -- "refs/heads/$arg"; then
>                                 branch="$arg"
>                         fi
>                 elif rev=$(git-rev-parse --verify "$arg^{tree}" 2>/dev/null)

There is leftover ] before ; in if.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git