tg-update: strip refs/top-bases/ from PATTERNs just in case
authorAndrey Borzenkov <arvidjaar@gmail.com>
Fri, 18 Mar 2011 21:27:51 +0000 (19 00:27 +0300)
committerAndrey Borzenkov <arvidjaar@gmail.com>
Fri, 18 Mar 2011 21:27:51 +0000 (19 00:27 +0300)
tg-update.sh

index 9d421ef..0a5193d 100644 (file)
@@ -24,7 +24,7 @@ while [ -n "$1" ]; do
                        [ -z "$name" ] || die "name already specified ($name)"
                        name="$arg"
                else
-                       pattern="$pattern refs/top-bases/$arg"
+                       pattern="$pattern refs/top-bases/${arg#refs/top-bases/}"
                fi
                ;;
        esac