Skip to content
Snippets Groups Projects
Commit b294f72a authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

prevent user to view status of Master tree

parent 75d0a0c5
No related branches found
No related tags found
No related merge requests found
...@@ -548,6 +548,9 @@ int ssexec_tree_status(int argc, char const *const *argv, ssexec_t *info) ...@@ -548,6 +548,9 @@ int ssexec_tree_status(int argc, char const *const *argv, ssexec_t *info)
if (!tree_isvalid(info->base.s, treename)) if (!tree_isvalid(info->base.s, treename))
log_dieusys(LOG_EXIT_SYS, "find tree: ", treename) ; log_dieusys(LOG_EXIT_SYS, "find tree: ", treename) ;
if (!strcmp(treename, SS_MASTER + 1))
log_die(LOG_EXIT_USER, "you can not view the status of the Master tree -- please use \'66 tree resolve Master\' instead") ;
info_display_all(treename, what) ; info_display_all(treename, what) ;
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment