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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]