question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`git ls-files -m -o` fails when upgrading from v5

See original GitHub issue

After 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:closed
  • Created 5 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
pvdlgcommented, Jul 17, 2018

It seems using the option --directory solve the problem. I have to check if it doesn’t have any negative impact.

1reaction
pvdlgcommented, Jul 17, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found