X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=tg-create.sh;h=30c69c9ee1929ba80af155e46e704c4e339f7d73;hb=e621316dcb163c6ea04929b6b1e9e5b93d5d73d5;hp=8d39f46fe7c067438ff0249e2c4f7c865622ea8b;hpb=c68e37d2dc2bb1250e7147bfd9a0879a9c513c92;p=topgit.git diff --git a/tg-create.sh b/tg-create.sh index 8d39f46..30c69c9 100644 --- a/tg-create.sh +++ b/tg-create.sh @@ -30,12 +30,12 @@ done if [ -z "$deps" ]; then head="$(git symbolic-ref HEAD)" - bname="${heads#refs/top-bases/}" + bname="${head#refs/top-bases/}" if [ "$bname" != "$head" -a -s "$git_dir/top-deps" -a -s "$git_dir/top-merge" ]; then # We are on a base branch now; resume merge! deps="$(cat "$git_dir/top-deps")" - merge="$(cat "$git_dir/top-merge") " - name="$base" + merge="$(cat "$git_dir/top-merge")" + name="$bname" restarted=1 info "Resuming $name setup..." else