Skip to content
Commit 433977e9 authored by Konrad Weihmann's avatar Konrad Weihmann Committed by K Weihmann
Browse files

repo: exit on missing entry point



exit if no repo_main can be found right before executing the command.
This happens for instance when 'repo init' is run on root path
(for example in a container). Without this counter measure the tool
will crash at exec_command with
TypeError: sequence item 1: expected str instance, NoneType found

Change-Id: Ia8480cfe2151c3b35c9572789ad8cb619288cce1
Signed-off-by: default avatarKonrad Weihmann <kweihmann@outlook.com>
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/263457


Reviewed-by: default avatarMike Frysinger <vapier@google.com>
Reviewed-by: default avatarDavid Pursehouse <dpursehouse@digital.ai>
parent dd37fb22
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment