Syncing a new hook directory fails when running from tarball
The issue was found by @andrei during 1.14 sanity checks: #1240 (comment 421415)
- If I do
rake hook:init MODULE=stork-server-ldap
, it initializes the git module correctly relative to the tarball content. However, if I dorake hook:sync
, because the tarball is not a git repo, it goes all the way to the nearest parent git repository, and does some syncing there. I happen to have my home directory set up as a git repo, so I ended up with having some of my modules there modified. The task could instead check if there is a.git
directory created at the same level asRakefile
first to determine if it is a tarball or a git repo. I also understand that this is not a task that you usually run on a tarball.
modified: .config/awesome/lain (new commits, modified content)
modified: .zprezto (modified content)