mathiasbynens / mathiasbynens/dotfiles

git "insufficient permission" error when running jspm install

Open
#556 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
31.5k
Forks
8.4k
PR merge metrics
No merged PRs in 30d

Description

I've been using jspm-cli for quite some now, and JUST after bootstrapping the dotfiles with the default .gitconfig settings, I've begun receiving the following error with every `jspm install` command:

```
warn Error on getOverride for jspm:npm, retrying (1).
Error: Command failed: /bin/sh -c git fetch --all && git reset --hard origin/master
error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed
error: Could not fetch origin

at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket. (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)
```

I'm curious if anyone can spot where the dotfiles might have affected my git permissions in such a way that jspm starts complaining -- particularly when it attempts a `/bin/sh -c git fetch --all && git reset --hard origin/master` command.

It might be worth noting that I currently have my versions of npm and node managed through nvm, and both of those still work as expected (as does git itself).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the default .gitconfig settings involved in the dotfiles bootstrap, then reproduce jspm install and the shown `git fetch --all && git reset --hard origin/master` command. Check whether the repository’s `.git/objects` permissions are affected; done means identifying the responsible dotfiles setting or documenting that the failure is external to this repository.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, nodejs, shell
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.