ac57c34ad3a97779a948f4f716d704c22061c98b
braney
  Thu Mar 23 13:01:39 2023 -0700
oops.. need to remove assumesHub cart variable once it has been
processed

diff --git src/hg/lib/hubConnect.c src/hg/lib/hubConnect.c
index 25a5ed2..8019f5e 100644
--- src/hg/lib/hubConnect.c
+++ src/hg/lib/hubConnect.c
@@ -1121,30 +1121,32 @@
             // remove the old visibility/setting
             cartRemove(cart, cartVars->name);
             }
 
         // turn on this remapped hub
         char hubName[4096];
         cartSetString(cart, hgHubConnectRemakeTrackHub, "on");
         safef(hubName, sizeof(hubName), "%s%u", hgHubConnectHubVarPrefix, localHubId);
         cartSetString(cart, hubName, "1");
 
         // remove the old hub connection
         safef(hubName, sizeof(hubName), "%s%u", hgHubConnectHubVarPrefix, sessionHubId);
         cartRemove(cart, hubName);
         }
     }
+
+cartRemove(cart, "assumesHub");
 }
 
 char *hubConnectLoadHubs(struct cart *cart)
 /* load the track data hubs.  Set a static global to remember them */
 {
 char *dbSpec = asmAliasFind(cartOptionalString(cart, "db"));
 char *curatedHubPrefix = getCuratedHubPrefix();
 if (dbSpec != NULL)
     lookForCuratedHubs(cart, trackHubSkipHubName(dbSpec), curatedHubPrefix);
 
 char *newDatabase = checkForNew( cart);
 newDatabase = asmAliasFind(newDatabase);
 cartSetString(cart, hgHubConnectRemakeTrackHub, "on");
 
 portHubStatus(cart);