rkotze / git-mob

Co-author commits tool. A cross-platform command-line tool for social coding. Includes co-authors in commits when pair/mob programming.
https://www.npmjs.com/package/git-mob
MIT License
182 stars 21 forks source link

Git mob does not work in nested directories #25

Closed regisbsb closed 6 years ago

steffinchen commented 6 years ago

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'

rkotze commented 6 years ago

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

Sarabadu commented 6 years ago

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