chiark / gitweb /
branch_needs_update(): Fox branch_contains call: $1 -> $_name
[topgit.git] / tg.sh
diff --git a/tg.sh b/tg.sh
index 146cddaa2bf3e1b22d0b5b2f089ce522b1a61a2e..6312d0064d9fcb9529cf24b11f0aea1324bb79ae 100644 (file)
--- a/tg.sh
+++ b/tg.sh
@@ -139,7 +139,7 @@ branch_needs_update()
                # _dep needs to be synced with its base
                echo ": $_dep $_depchain"
                _ret=1
-       elif ! branch_contains "refs/top-bases/$1" "$_dep"; then
+       elif ! branch_contains "refs/top-bases/$_name" "$_dep"; then
                # Some new commits in _dep
                echo "$_dep $_depchain"
                _ret=1