We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18ebe7d commit 5b01512Copy full SHA for 5b01512
datajunction-server/datajunction_server/internal/namespaces.py
@@ -291,8 +291,10 @@ def resolve_git_info_from_map(
291
"branch": branch,
292
"default_branch": default_branch,
293
"path": config_ns.git_path,
294
- "is_default_branch": bool(
295
- branch and default_branch and branch == default_branch,
+ "is_default_branch": (
+ branch is None # root namespace — no branch means it IS the default
296
+ or not default_branch # no default configured — assume default
297
+ or branch == default_branch
298
),
299
"parent_namespace": branch_ns.parent_namespace if branch_ns else None,
300
"git_only": config_ns.git_only,
0 commit comments