Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passpy fails if pass path is a symbolic link or a submodule #6

Open
lyz-code opened this issue Aug 17, 2020 · 0 comments
Open

Passpy fails if pass path is a symbolic link or a submodule #6

lyz-code opened this issue Aug 17, 2020 · 0 comments

Comments

@lyz-code
Copy link

In order to have different pass repositories with different teams each of the members of my team has his main password store and imports the teams repositories as links or submodules.

When generating a new key with store.gen_key() the step of adding the change to the git repository fails with the following errors:

  • If it's behind a symbolic link:
...
  File "~/.local/lib/python3.7/site-packages/passpy/util.py", line 92, in initialised_wrapper
    return func(*args, **kwargs)
  File "~/.local/lib/python3.7/site-packages/passpy/util.py", line 66, in trap_wrapper
    return func(*args, **kwargs)
  File "~/.local/lib/python3.7/site-packages/passpy/store.py", line 377, in gen_key
    verbose=self.verbose)
  File "~/.local/lib/python3.7/site-packages/passpy/git.py", line 88, in git_add_path
    repo.git.add(*path)
  File "~/.local/lib/python3.7/site-packages/git/cmd.py", line 542, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "~/.local/lib/python3.7/site-packages/git/cmd.py", line 1005, in _call_process
    return self.execute(call, **exec_kwargs)
  File "~/.local/lib/python3.7/site-packages/git/cmd.py", line 822, in execute
    raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git add ~/.password-store/team_1/ansible-vault/production.gpg
  stderr: 'fatal: pathspec '~/.password-store/team_1/ansible-vault/production.gpg' is beyond a symbolic link'
  • If it's behind a submodule:
... Same as above ...

git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git add ~/.password-store/team_1/ansible-vault/production.gpg
  stderr: 'fatal: Pathspec '~/.password-store/team_1/ansible-vault/production.gpg' is in submodule 'team_1''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant