X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=tg-create.sh;h=30c69c9ee1929ba80af155e46e704c4e339f7d73;hb=737a9fa9de0ca7610457c2b4ed514b650668beda;hp=b5c7789315b6d6448b407ab2370013ebbd34a62c;hpb=308892d0c071135031994606170c8be6653e7197;p=topgit.git diff --git a/tg-create.sh b/tg-create.sh index b5c7789..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 @@ -114,5 +114,5 @@ git add "$root_dir/.topmsg" -info "Topic branch $name successfully set up. Please fill .topmsg now." -info "You MUST do an initial commit. To abort: git rm -f .top* && git checkout ${deps%% *} && tg delete $name" +info "Topic branch $name set up. Please fill .topmsg now and make initial commit." +info "To abort: git rm -f .top* && git checkout ${deps%% *} && tg delete $name"