vizion
vizion copied to clipboard
vizion.analyze fails if no remote named 'origin' is specified
if running on a git repository without an origin remote specified, vizion runs into an error:
Error: Error: Command failed: /bin/sh -c cd '/path/to/repo/';LC_ALL=en_US.UTF-8 git config --get remote.origin.url
Vizion should not crash for repositories without any remote at all or with a remote named other than "origin".
Hello,
Thanks for reporting this issue, does it crashed PM2 too??
@Unitech no, but the pm2-managed app is considered as not being under source control, and no metadata of the git repository is available.
So returning return cb(null, null); here https://github.com/keymetrics/vizion/blob/master/lib/git.js#L20
would do the trick right?