git-commit: add a check for FILEPATH
authorDenis Ovsienko <denis@ovsienko.info>
Sun, 13 Jan 2019 20:32:02 +0000 (20:32 +0000)
committerDenis Ovsienko <denis@ovsienko.info>
Sun, 13 Jan 2019 20:46:33 +0000 (20:46 +0000)
commit78f9524dd01aa59f6b887e99e1658c1cae0de016
tree583eba2a23e14f704da6f49f3e974e4956c020db
parent1594feab1d94aa2157ad99758bd5b90c17bc1d08
git-commit: add a check for FILEPATH

Test that the file is not outside of the repository directory. While at
it, move the non-empty check into git_commit_or_exit() as it actually
belongs there.

[skip ci]
gateways/git-commit