If the :deps-file path isn't resolved to the absolute path in git-opts, the following error happens even with a clean working directory:
$ neil --version
neil 0.1.48
$ neil version patch
----- Error --------------------------------------------------------------------
Type: clojure.lang.ExceptionInfo
Message: Requires clean working directory unless --force is provided
Data: {}
This wasn't caught by the tests since we pass in a different :deps-file which has the absolute path.
This PR fixes the problem by calling fs/canonicalize on the :deps-file path before passing it down to the helper functions.
If the
:deps-file
path isn't resolved to the absolute path ingit-opts
, the following error happens even with a clean working directory:This wasn't caught by the tests since we pass in a different
:deps-file
which has the absolute path.This PR fixes the problem by calling
fs/canonicalize
on the:deps-file
path before passing it down to the helper functions.