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