dco icon indicating copy to clipboard operation
dco copied to clipboard

Unable to re-sign old commits

Open damacus opened this issue 7 years ago • 5 comments

Error

Run: dco sign

`command': git '--git-dir=/Users/dmw/repos/cookbooks/sous-chefs/php/.git' '--work-tree=/Users/dmw/repos/cookbooks/sous-chefs/php' ls-files '--stage' ''  2>&1:fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths (Git::GitExecuteError)

Environment ChefDK

chef --version

Chef Development Kit Version: 2.4.22
chef-client version: 13.6.4
delivery version: master (73ebb72a6c42b3d2ff5370c476be800fee7e5427)
berks version: 6.3.1
kitchen version: 1.19.2
inspec version: 1.48.0

dco-1.0.1

damacus avatar Feb 06 '18 16:02 damacus

Which folder were you in when you ran the command?

coderanger avatar Feb 06 '18 19:02 coderanger

and also which version of git is installed :)

coderanger avatar Feb 06 '18 19:02 coderanger

Hey, In folder: /Users/dmw/repos/cookbooks/sous-chefs/php/

git version 2.16.1

I ran it from another Mac and it worked. I "believe" they're setup the same, with the same weird direnv setup and their PATHS are definitely the same. Both using the same version of dco, from the same location.

I'll check the git version on the other mac tomorrow morning.

Thanks

damacus avatar Feb 06 '18 22:02 damacus

Git version on the machine that works: 2.14.3 (Aple Git-98)

damacus avatar Feb 07 '18 09:02 damacus

So yes, it's that, the newer version of git seems to break it. Reverting to 2.14.3 allows sign off.

damacus avatar Feb 07 '18 09:02 damacus