Skip to content

Commit

Permalink
If the vc dir is computed via marker files, the VC is None.
Browse files Browse the repository at this point in the history
Else we might return the VC of a less nested directory.
  • Loading branch information
ansalond committed Jan 10, 2024
1 parent 8019078 commit 28add3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mx/_impl/mx.py
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,7 @@ def get_vc(candidate_root_dir):
candidate_root_dir = dirname(candidate_root_dir)

# Return the match with the "deepest nesting"
return vc, vc_dir if len(vc_dir or '') > len(marked_root_dir or '') else marked_root_dir
return (vc, vc_dir) if len(vc_dir or '') >= len(marked_root_dir or '') else (None, marked_root_dir)

@staticmethod
def siblings_dir(suite_dir):
Expand Down

0 comments on commit 28add3d

Please sign in to comment.