Skip to content

Commit 5b01512

Browse files
committed
Fix
1 parent 18ebe7d commit 5b01512

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

datajunction-server/datajunction_server/internal/namespaces.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,10 @@ def resolve_git_info_from_map(
291291
"branch": branch,
292292
"default_branch": default_branch,
293293
"path": config_ns.git_path,
294-
"is_default_branch": bool(
295-
branch and default_branch and branch == default_branch,
294+
"is_default_branch": (
295+
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
296298
),
297299
"parent_namespace": branch_ns.parent_namespace if branch_ns else None,
298300
"git_only": config_ns.git_only,

0 commit comments

Comments
 (0)