Closed rshym closed 11 months ago
Tested with https access to the private repo.
FAILED: yocto/test
GIT_SSH_COMMAND='ssh -o BatchMode=yes' GIT_TERMINAL_PROMPT=0 git clone -q https://github.com/rshym/test.git yocto/test && touch yocto/test
fatal: could not read Username for 'https://github.com': terminal prompts disabled
ninja: build stopped: subcommand failed.
Rebased on the latest changes.
Thanks
Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Ack
is added.
Tested.
Ready to merge.
This commit addresses issue with git interacting with the user through the console. For example, HTTPS access to the private repo. We use git inside the console, that is hidden from the user, so user see only hanging fetch.
So, we instruct the git to not interact with the user by the command
GIT_TERMINAL_PROMPT=0
. As result, git fails cloning and inform user that asking name/password is not possible. This should push the user to use script-friendly authorization, like ssh.Suggested-by: Artem Mygaiev artem_mygaiev@epam.com