`git ls-files -m -o` fails when upgrading from v5
See original GitHub issueAfter upgrading I get a error when listing modified files. I assume this might be something to do with the assets change but not sure the correct way to fix it. The build requires no extra assets other than the package.json
and CHANGELOG.md
. I cannot reproduce it locally, so not sure what is happening. My hunch is that CircleCI is somehow enabling the modules inside the node_modules
was wondering if you peeps have a better idea. See the build failure and the project
[Semantic release]: An error occurred while running semantic-release: { Error: Command failed: git ls-files -m -o
fatal: Not a git repository: node_modules/art/lib/slick/../../.git/modules/lib/slick
at makeError (/home/circleci/repo/node_modules/execa/index.js:172:9)
at Promise.all.then.arr (/home/circleci/repo/node_modules/execa/index.js:277:16)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
code: 128,
stdout: '',
stderr: 'fatal: Not a git repository: node_modules/art/lib/slick/../../.git/modules/lib/slick\n',
failed: true,
signal: null,
cmd: 'git ls-files -m -o',
timedOut: false,
killed: false,
pluginName: '@semantic-release/git' }
Have just stuck with v5 for now…
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
git-ls-files Documentation - Git
When using --error-unmatch to expand the user supplied <file> (i.e. path pattern) arguments to paths, pretend that paths which were removed in the...
Read more >git lfs push --all fails with "open /FileRemovedInEarlierCommit ...
When the server is missing files (due to a bug or migrating to new server or probably other reasons), it's my understanding that...
Read more >File Locking - GitLab Documentation
Exclusive file locks for binary files: done through the command line with Git LFS and .gitattributes , it prevents locked files from being...
Read more >git update-index --assume-unchanged returns error
If the answer is yes to either of those, then the file is not in the repository and this is the reason for...
Read more >git-annex-upgrade - Branchable
DESCRIPTION. Upgrades the repository to the latest version. Each git-annex repository has an annex.version in its git configuration, that indicates the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It seems using the option
--directory
solve the problem. I have to check if it doesn’t have any negative impact.Ideally I’d like to find a way to prevent the issue in this module. If you have any idea on how to run
git ls-files -m -o
ignoring.gitmodules
let me know.