rkotze/git-mob

Git mob does not work in nested directories

regisbsb opened this issue · 3 comments

Git mob does not work in nested directories

When running 'git mob' not inside the root directory of a git repo but in a subfolder, it fails with the following message:
UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'C:\work\github\titan\web\.git\.gitmessage'

Which version of git-mob are you using? This is fixed in the latest version.

there is a problem with the git version.
since 2.13 git rev-parse -git-path return the relative directory

but older versions of git return only the url from the git root path
made a pull request with this fix evaluating the git version
#29